Have you tried EntityManager.detatch(entity) ? Not sure about Hibernate but it works in JPA.
On Mar 21, 2012, at 4:29 PM, George Christman wrote: > Hello, I'm wondering if it's possible to save an object to the Hibernates > session without committing the object to the database like so, > > session.save(myObject); > > > Then return the page and reattach the session object. Everything I've tried > results in a null session object on page return although the object pk > continues to increment. I'm not sure if the hibernate session is really lost > or if the database is incrementing the pk. > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-session-reattach-tp5584040p5584040.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org