hibernate-reactive: @DynamicInsert not supported with IDENTITY columns
project.ext.vertxVersion = ‘4.1.2’ project.ext.hibernateVersion = ‘1.0.0.CR9’
Database = (PostgreSQL) 13.2 (Debian 13.2-1.pgdg100+1).
This works fine in hibernateVersion = ‘1.0.0.CR7’.
public static <T> T saveOrUpdate(T t){ T entity = DatabaseConfiguration.getSessionFactory() .withTransaction((session,tx) -> session.merge(t)) .toCompletableFuture().join(); return entity; }
javax.persistence.PersistenceException: org.hibernate.HibernateException: java.lang.RuntimeException: Unable to obtain MySQLClient.LAST_INSERTED_ID field
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (10 by maintainers)
Commits related to this issue
- fix #939 @DynamicUpdate now works with IDENTITY columns — committed to gavinking/hibernate-reactive by gavinking 3 years ago
- fix #939 @DynamicInsert now works with IDENTITY columns — committed to gavinking/hibernate-reactive by gavinking 3 years ago
- fix #939 @DynamicInsert now works with IDENTITY columns — committed to gavinking/hibernate-reactive by gavinking 3 years ago
- fix problem where a CNFE would hide the real problem see #939 — committed to gavinking/hibernate-reactive by gavinking 3 years ago
- fix #939 @DynamicInsert now works with IDENTITY columns — committed to hibernate/hibernate-reactive by gavinking 3 years ago
- fix problem where a CNFE would hide the real problem see #939 — committed to hibernate/hibernate-reactive by gavinking 3 years ago
@gavinking thanks sure will do that next time in reporting any new issue. Should have added the domain class when reporting this .