Hibernate 8 + Jakarta Persistence 4: EntityAgent and stateless sessions demo
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7jUQrypvpE1ix1k7V
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
=== H2 ===
|
||||
EntityAgent.update(stale book) -> org.hibernate.HibernateException: The database returned no natively generated values : com.ankurm.agent.Book
|
||||
EntityManager.merge(stale book) -> jakarta.persistence.OptimisticLockException
|
||||
EntityAgent.update(row not in db) -> org.hibernate.HibernateException: The database returned no natively generated values : com.ankurm.agent.Book
|
||||
EntityAgent.upsert(new versioned) -> org.hibernate.HibernateException: The database returned no natively generated values : com.ankurm.agent.Book
|
||||
|
||||
=== HSQLDB ===
|
||||
EntityAgent.update(stale book) -> jakarta.persistence.OptimisticLockException
|
||||
EntityManager.merge(stale book) -> jakarta.persistence.OptimisticLockException
|
||||
EntityAgent.update(row not in db) -> jakarta.persistence.OptimisticLockException
|
||||
EntityAgent.upsert(new versioned) -> jakarta.persistence.OptimisticLockException
|
||||
|
||||
Reference in New Issue
Block a user