found solution, session.flush() at end of the thread, not needed if not in a
thread, don't know why.
Angelo Chen wrote:
>
> Hi,
>
> I have following code in a service:
>
> Rec p = new Rec();
> session.save(p);
>
> p.setName("test");
> session.save(p);
>
> this code works, but if it is invoked in a service under a thread, the
> change("test") was never saved to the file(the new record is there), any
> idea?
>
> Thanks,
>
> A.C.
>
--
View this message in context:
http://www.nabble.com/T5%3A-Tapestry-Hibernate-and-thread-tp15155391p15156420.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]