Files
hibernate8-jpa4-demo/jakarta-data/output/h8/02-query-and-record-projection.txt

8 lines
587 B
Plaintext

cheaperThan(46.00) -> [Java in a Nutshell 30.00, Java Puzzlers 39.50, Effective Java 45.00]
titlesBy(Bloch) -> [TitleAndYear[title=Effective Java, publishedYear=2001], TitleAndYear[title=Java Puzzlers, publishedYear=2005]]
countBy(Bloch) -> 2
SQL Hibernate prepared:
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.publishedYear,b1_0.title from Book b1_0 where b1_0.price<? order by b1_0.price
sql> select b1_0.title,b1_0.publishedYear from Book b1_0 where b1_0.author=? order by b1_0.publishedYear
sql> select count(*) from Book b1_0 where b1_0.author=?