RE: hibernate detached objects as persistent page properties

2006-02-23 Thread James Carman
) { this.stateManager = stateManager; } } -Original Message- From: Anthony Fox [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 8:57 AM To: Tapestry users Subject: Re: hibernate detached objects as persistent page properties Thanks for the code. I'll take a look an

Re: hibernate detached objects as persistent page properties

2006-02-23 Thread Anthony Fox
is stuff works for you guys! Let me know if I can help with > anything. > > > -Original Message- > From: Andreas Bulling [mailto:[EMAIL PROTECTED] On Behalf Of > Andreas Bulling > Sent: Wednesday, February 22, 2006 1:33 PM > To: Tapestry users > Subject: Re: hibe

RE: hibernate detached objects as persistent page properties

2006-02-22 Thread James Carman
February 22, 2006 1:33 PM To: Tapestry users Subject: Re: hibernate detached objects as persistent page properties On 22. Feb 2006 - 13:30:00, James Carman wrote: | Okay, folks. I've abstracted out the Hibernate/Tapestry stuff into its own | project called "Tapernate." You can downloa

Re: hibernate detached objects as persistent page properties

2006-02-22 Thread Andreas Bulling
On 22. Feb 2006 - 13:30:00, James Carman wrote: | Okay, folks. I've abstracted out the Hibernate/Tapestry stuff into its own | project called "Tapernate." You can download the source and build it | yourself (the libs are there for you) from SVN: | | http://www.carmanconsulting.com/svn/public/tap

RE: hibernate detached objects as persistent page properties

2006-02-22 Thread James Carman
ourse, if you guys find something wrong with it, I'll fix it because I'm using it in my own project. Enjoy! -Original Message- From: Anthony Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 12:43 PM To: Tapestry users Subject: Re: hibernate detached objects as per

Re: hibernate detached objects as persistent page properties

2006-02-22 Thread Anthony Fox
I don't want to expose the hibernate session to tapestry pages and components. I would rather keep the ui layer unaware of detached objects or the mechanism of reattaching those objects or even whether an object is detached or not. I'm looking for a way in which I can reattach the objects transpa

Re: hibernate detached objects as persistent page properties

2006-02-22 Thread Andreas Bulling
On 22. Feb 2006 - 12:51:19, James Carman wrote: | Hold your horses. I've almost got my stuff set up in SVN for you all to | check out. I'm creating a project called "Tapernate" (cheesey, I know). I nearly can't wait any longer and I'm counting the minutes :-) Wooo, when I posted my question one

Re: hibernate detached objects as persistent page properties

2006-02-22 Thread Konstantin Ignatyev
You could do reattach objects with hibernateSession.lock( object, LockMode.NONE), but I suggest explicit reattaching with session.merge( object ). Explicit merging is better IMO because easily allows "wizard"-like multi iteration editing of an object and then persisting all the changes if desired

RE: hibernate detached objects as persistent page properties

2006-02-22 Thread James Carman
ry users Subject: Re: hibernate detached objects as persistent page properties I have considered a similar solution as I use Spring as well. However, I was looking for a way to not have to _explicitly_ reattach objects. Rather, I would like all persistent detached objects in the session&#

Re: hibernate detached objects as persistent page properties

2006-02-22 Thread Anthony Fox
I have considered a similar solution as I use Spring as well. However, I was looking for a way to not have to _explicitly_ reattach objects. Rather, I would like all persistent detached objects in the session's context to reattach automatically. A filter or interceptor with knowledge of what obj

Re: hibernate detached objects as persistent page properties

2006-02-22 Thread Shawn Church
I'm doing this in several applications. I normally use Spring also, but that is not really necessary. Tapestry isn't aware of the persistence implementation, but it does have to explicitly attach (and occasionally merge or evict) detached objects. Since I reference my DAO services in my Tapestry

Re: hibernate detached objects as persistent page properties

2006-02-22 Thread Anthony Fox
st stores it as-is in the session. If you > would like the code, configuration information, just let me know. > > > > -Original Message- > From: Anthony Fox [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 22, 2006 8:12 AM > To: Tapestry users > Subject: hibe

RE: hibernate detached objects as persistent page properties

2006-02-22 Thread James Carman
:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 8:12 AM To: Tapestry users Subject: hibernate detached objects as persistent page properties Hi, I have an application that has a lot of hibernate detached objects (with lazy loaded collections) that are persistent page properties. What are b

hibernate detached objects as persistent page properties

2006-02-22 Thread Anthony Fox
Hi, I have an application that has a lot of hibernate detached objects (with lazy loaded collections) that are persistent page properties. What are best practices for reattaching these detached objects while maintaining a clean separation of layers? I have my implementation specific persistence