=== H2 === EntityAgent.update(stale book) -> org.hibernate.HibernateException EntityManager.merge(stale book) -> jakarta.persistence.OptimisticLockException EntityAgent.update(row not in db) -> org.hibernate.HibernateException EntityAgent.upsert(new versioned) -> org.hibernate.HibernateException === 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