I am having this same problem and I have tried to wrap it with a transaction.begin and commit. Could someone please post an example showing how to create the transaction and close the transaction.
I have tried:
public void save(Goal transientInstance) {
log.debug(“saving Goal instance”);
try {
Session session = getSession();
Transaction tx = session.beginTransaction();
getHibernateTemplate().save(transientInstance);
tx.commit();
session.close();
log.debug(“save successful”);
} catch (RuntimeException re) {
log.error(“save failed”, re);
throw re;
}
}
thanks,
J