Hibernate version: 2.1.3
In an Interceptor of mine, I do a check to see if I should create a new child record (inventory) and this all works great.
Code:
try {
Session sess = HibernateContext.getTemporarySession();
processInventoryDestinationCheck(sess, (Shipment) entity);
sess.flush();
sess.close();
//return false;
return true;
} catch (Exception e) {
LOG.error(e.toString());
throw new CallbackException(e);
}
I even see the insert print out:
The generated SQL (show_sql=true): Hibernate: insert into inventory_history (user_id, old_inventory, new_inventory, create_date, tracking_number, product_id) values (?, ?, ?, ?, ?, ?)
But there are no records in the DB? Is there some sort of conflict with my Session and my Temp Session? I am using Proxool as my pool.
Any help would be appreciated.
Matt