diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e77f96070..edb286963 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -47,6 +47,7 @@ jakartaActivation = { module = 'com.sun.activation:jakarta.activation', version. hibernate = { module = 'org.hibernate:hibernate-core', version.ref='hibernate' } hibernateToolsOrm = { module='org.hibernate.tool:hibernate-tools-orm', version.ref='hibernate' } hibernateToolsUtils = { module='org.hibernate.tool:hibernate-tools-utils', version.ref='hibernate' } +hibernateAgroal = { module='org.hibernate:hibernate-agroal', version.ref='hibernate' } dom4j = { module = 'org.dom4j:dom4j', version.ref='dom4j' } jdbcPostgresql = { module = 'org.postgresql:postgresql', version.ref='jdbcPostgresql' } jdbcMysql = { module = 'mysql:mysql-connector-java', version.ref='jdbcMysql' } diff --git a/modules/dbsupport/src/main/java/org/jpos/ee/DB.java b/modules/dbsupport/src/main/java/org/jpos/ee/DB.java index dbc9b2f22..39f046301 100644 --- a/modules/dbsupport/src/main/java/org/jpos/ee/DB.java +++ b/modules/dbsupport/src/main/java/org/jpos/ee/DB.java @@ -361,7 +361,7 @@ public Session session() */ public void save(Object obj) throws HibernateException { - session.save(obj); + session.persist(obj); } /**