RE: Hibernate modifying POJOs before rollback...

2006-05-25 Thread James Carman
Thanks, but I've already written it. I will take a look, though. -Original Message- From: Javier Sanchez [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 5:42 PM To: Tapestry users Subject: Re: Hibernate modifying POJOs before rollback... I think you need a Transactions Ma

Re: Hibernate modifying POJOs before rollback...

2006-05-25 Thread Javier Sanchez
I think you need a Transactions Manager for Java Objects such as JBoss Transactions to do that. Look at http://labs.jboss.com/portal/index.html?ctrl:id=page.default.info&project=jbosstm JAVIER SANCHEZ. On 5/23/06, James Carman <[EMAIL PROTECTED]> wrote: All, I am trying to add some code into

Re: Hibernate modifying POJOs before rollback...

2006-05-24 Thread Henri Dupre
On 5/23/06, James Carman <[EMAIL PROTECTED]> wrote: All, I am trying to add some code into Tapernate which will "rollback" the POJOs that Hibernate has changed when a transaction is rolled back (the version or auto-generated id properties). I am going to attempt it using an interceptor. Has a

RE: Hibernate modifying POJOs before rollback...

2006-05-23 Thread James Carman
7:41 PM To: Tapestry users Subject: Re: Hibernate modifying POJOs before rollback... Ah well..You don't even need to do that. The main interface has a ton of methods to define, but it also comes with a "Default" implementation, letting you choose which one to handle.. I'm 90% sure the

Re: Hibernate modifying POJOs before rollback...

2006-05-23 Thread Jesse Kuhnert
ssage- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 7:17 PM To: Tapestry users Subject: Re: Hibernate modifying POJOs before rollback... I've added interceptors into hibernate before with great success. The method implementations pass in before / after data co

RE: Hibernate modifying POJOs before rollback...

2006-05-23 Thread James Carman
o that I could maybe stand "on the shoulders of giants" a bit. :-) -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 23, 2006 7:17 PM To: Tapestry users Subject: Re: Hibernate modifying POJOs before rollback... I've added interceptors into

Re: Hibernate modifying POJOs before rollback...

2006-05-23 Thread Jesse Kuhnert
I've added interceptors into hibernate before with great success. The method implementations pass in before / after data comparisons for you to look at / modify. It sounds like tricky stuff though(with how they normally document "all bets are off" type things when a rollback happens or exception