I am trying to use the Hibernate session to save new row in the database. "snapshot" is an object trying to be saved. When calling the session.save(snapshot) method, the hibernate debug shows it starts to save it and then it just hangs. It never gets past the line DEBUG o.h.e.d.AbstractSaveEventListener - @ - executing identity-insert immediately
Code:
Session session = HibernateUtil.getSession();
Transaction tx = session.beginTransaction();
logger.info("Preparing to save the snapshot");
session.save(snapshot);
logger.info("Finished saving the snapshot");
tx.commit();
Code:
2009-06-26 10:12:50,278 [pool-1-thread-1] DEBUG org.hibernate.impl.SessionImpl - @ - opened session at timestamp: 12460363702
2009-06-26 10:12:50,278 [pool-1-thread-1] DEBUG o.h.t.JDBCTransaction - @ - begin
2009-06-26 10:12:50,278 [pool-1-thread-1] DEBUG o.h.jdbc.ConnectionManager - @ - opening JDBC connection
2009-06-26 10:12:50,278 [pool-1-thread-1] DEBUG o.h.t.JDBCTransaction - @ - current autocommit status: true
2009-06-26 10:12:50,278 [pool-1-thread-1] DEBUG o.h.t.JDBCTransaction - @ - disabling autocommit
2009-06-26 10:12:50,278 [pool-1-thread-1] INFO c.d.m.backend.MtaQueueMonitor - @ - Preparing to save the snapshot
2009-06-26 10:12:50,283 [pool-1-thread-1] DEBUG o.h.e.d.AbstractSaveEventListener - @ - executing identity-insert immediately
Does anyone know any potential causes for this?