Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
12 lines
1.2 KiB
Plaintext
12 lines
1.2 KiB
Plaintext
titlesBy(Bloch) @Select(title) -> [Effective Java, Java Puzzlers]
|
|
slimBooksBy(Bloch) record return -> [TitleAndYear[title=Effective Java, publishedYear=2001], TitleAndYear[title=Java Puzzlers, publishedYear=2005]]
|
|
pricedAtLeast(48.00) @Is(AtLeast) -> [Modern Java in Action 48.00, Java Concurrency in Practice 52.00, Core Java 60.00]
|
|
youngerAndCheaper(2018, 50.00) -> [Java in a Nutshell 30.00, Modern Java in Action 48.00]
|
|
twoMostExpensive(2000) @First(2) -> [Core Java 60.00, Java Concurrency in Practice 52.00]
|
|
SQL Hibernate prepared:
|
|
sql> select b1_0.title from Book b1_0 where b1_0.author=? order by 1
|
|
sql> select b1_0.title,b1_0.publishedYear from Book b1_0 where b1_0.author=? order by 2
|
|
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.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.publishedYear,b1_0.title from Book b1_0 where b1_0.publishedYear>=? and b1_0.price<? order by b1_0.price
|
|
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.publishedYear>=? order by b1_0.price desc fetch first ? rows only
|