Your wording is a bit peculiar, but are you asking how to reattach an object to a Hibernate session? You cannot "save" an object to a session. When you call session.save(), you are INSERTing a new record. If you want to reattach an object, the only way to do that in Hibernate is with session.lock(...). See StaleStateExceptions? paragraph on http://tynamo.org/tapestry-conversations+guide for more info.
Kalle On Wed, Mar 21, 2012 at 1:29 PM, George Christman <gchrist...@cardaddy.com> 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