You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lee Harrington <le...@gmail.com> on 2005/09/09 15:59:57 UTC
Hibernate 3 versioning/concurrency
Hi folks,
Would love to get some "best practices" for setting up hibernate with
struts. I'm gettin "staleobject" exceptions when I'm the only one editing. I
had this problem with Hibernate 2 and eventually solved it, but never really
understood.
Now the problem is back, and I'm stuck again.
Not sure what to put in the hbm.xml when it comes to version.
Not sure that to put in my action, my tableService class, when to begin the
transaction, how to end it (applicaiton filter?)
Anybody got the 411 on how to properly set things up?
Lee
Re: Hibernate 3 versioning/concurrency
Posted by Adam Hardy <ah...@cyberspaceroad.com>.
Lee Harrington on 09/09/05 14:59, wrote:
> Would love to get some "best practices" for setting up hibernate with
> struts. I'm gettin "staleobject" exceptions when I'm the only one editing. I
> had this problem with Hibernate 2 and eventually solved it, but never really
> understood.
>
> Now the problem is back, and I'm stuck again.
>
> Not sure what to put in the hbm.xml when it comes to version.
> Not sure that to put in my action, my tableService class, when to begin the
> transaction, how to end it (applicaiton filter?)
>
> Anybody got the 411 on how to properly set things up?
What Hibernate pattern are you using for session management? Check out
the Hibernate docs here:
http://www.hibernate.org/37.html
HTH
Adam
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org