Код: Выделить всё
@Query(
"""
SELECT new com.foo.dto.Foo(
bar.id,
bar.test,
bar.abc)\
FROM BarBar bar \
WHERE bar.test in :test\
""")
List getFoosById(List test);
Код: Выделить всё
HHH000117: HQL: select b from Foo b where b.test=:test, time: 0ms, rows: 1
HHH000117: HQL: select b from Foo b where b.test=:test, time: 0ms, rows: 1
Подробнее здесь: https://stackoverflow.com/questions/793 ... row-in-jpa
Мобильная версия