Add jakarta-data module: Jakarta Data repositories on Hibernate 7.4 / 8.0 CR2 vs Spring Data JPA 4.2

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
This commit is contained in:
Claude
2026-11-26 20:54:35 +05:30
parent 4f7ebd5cb0
commit 54c6d606ff
59 changed files with 2073 additions and 0 deletions
@@ -0,0 +1,4 @@
spring-data-jpa 4.2.0
spring-framework 7.1.0
hibernate 7.4.15.Final
java 25.0.5.1+2-LTS
@@ -0,0 +1,9 @@
findByIsbn("333") -> Book[333 'Java Concurrency in Practice' Brian Goetz 2006 52.00]
findByAuthorOrderByPublishedYear(Bloch) -> [Effective Java/2001, Java Puzzlers/2005]
findByAuthorAndPublishedYear(Bloch,2005) -> [Java Puzzlers]
findTop2ByPublishedYearGreaterThanEqualOrderByPriceDesc(2000) -> [Core Java 60.00, Java Concurrency in Practice 52.00]
SQL Hibernate prepared:
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.isbn=?
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.author=? order by b1_0.published_year
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.author=? and b1_0.published_year=?
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.published_year>=? order by b1_0.price desc fetch first ? rows only
@@ -0,0 +1,11 @@
cheaperThan(46.00) -> [Java in a Nutshell 30.00, Java Puzzlers 39.50, Effective Java 45.00]
findByAuthorOrderByPublishedYearAsc -> [TitleAndYear[title=Effective Java, publishedYear=2001], TitleAndYear[title=Java Puzzlers, publishedYear=2005]]
findByAuthorOrderByTitle(TitleOnly) -> [Effective Java, Java Puzzlers]
findByAuthorOrderByTitle(Book) -> [Effective Java, Java Puzzlers]
countByAuthor(Bloch) -> 2
SQL Hibernate prepared:
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.price<? order by b1_0.price
sql> select b1_0.title,b1_0.published_year from book b1_0 where b1_0.author=? order by b1_0.published_year
sql> select b1_0.title from book b1_0 where b1_0.author=? order by b1_0.title
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.author=? order by b1_0.title
sql> select count(b1_0.id) from book b1_0 where b1_0.author=?
@@ -0,0 +1,6 @@
changed price to 1.00 in memory, no save() call, leaving the transaction
price re-read from database: 1.00
SQL Hibernate prepared:
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.isbn=?
sql> update book set author=?,isbn=?,price=?,published_year=?,title=? where id=?
sql> select b1_0.id,b1_0.author,b1_0.isbn,b1_0.price,b1_0.published_year,b1_0.title from book b1_0 where b1_0.isbn=?
@@ -0,0 +1,2 @@
BrokenDerivedConfig -> PropertyReferenceException: No property 'autor' found for type 'Book'; Did you mean 'author'
BrokenQueryConfig -> PathElementException: Could not resolve attribute 'prise' of 'com.ankurm.sd.Book'