Re: Struts2 / Hibernate Question

2009-10-24 Thread Dennis Atkinson
gt; seems so common, that there should be a common and standard way of dealing > with it, but so far it seems not. > > --Dennis > > > > > > > > From: Eduard Neuwirt > To: Struts Users Mailing List > Sent: Fri, October

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
e a common and standard way of dealing with it, but so far it seems not. --Dennis From: Eduard Neuwirt To: Struts Users Mailing List Sent: Fri, October 23, 2009 3:19:09 PM Subject: Re: Struts2 / Hibernate Question Hi Dennis, sorry i don't know

Re: Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
g. But it seems so common, that there should be a common and standard way of dealing with it, but so far it seems not. --Dennis From: Eduard Neuwirt To: Struts Users Mailing List Sent: Fri, October 23, 2009 3:19:09 PM Subject: Re: Struts2 / Hibernate Qu

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
lugin implements this. --Dennis From: Eduard Neuwirt To: Struts Users Mailing List Sent: Fri, October 23, 2009 3:08:44 PM Subject: Re: Struts2 / Hibernate Question Hi, please have a look to the https://www.hibernate.org/43.html Regards Eduard Thomas Sa

Re: Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
Eduard, I thought the FullHibernatePlugin implements this. --Dennis From: Eduard Neuwirt To: Struts Users Mailing List Sent: Fri, October 23, 2009 3:08:44 PM Subject: Re: Struts2 / Hibernate Question Hi, please have a look to the https

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hi, please have a look to the https://www.hibernate.org/43.html Regards Eduard Thomas Sattler schrieb: So it sounds like both the FullHibernatePlugin and the OpenSessionInViewFilter class work. Thanks for the quick replies. Do you remember how these are configured? The FullHibernatePlugin w

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hello Johannes, I am a little bit confusing. I thougth that Spring + Hibernate do not solve the LazyInitializationException-issue because the hibernate session is attached to request scope, so it leads to the problem ? Do you store the session in the session scope ? Regards Eduard Johannes

Re: Struts2 / Hibernate Question

2009-10-23 Thread Thomas Sattler
So it sounds like both the FullHibernatePlugin and the OpenSessionInViewFilter class work. Thanks for the quick replies. Do you remember how these are configured? The FullHibernatePlugin wiki says only a few lines of configuration are required, but it doesn't say what those lines are. With Open

Re: Struts2 / Hibernate Question

2009-10-23 Thread Johannes Geppert
on that someone has found? > > I know this is a Hibernate issue and not a Struts issue, but I think > people here must have experience with this issue. > > Thanks in advance, > Dennis > > > > - --- web: http://www.jgeppert.com twitter: http://twitter.

Re: Struts2 / Hibernate Question

2009-10-23 Thread Eduard Neuwirt
Hi, Obviously there is a gap between Hibernate and Web-Application. OpenSessionInViewFilter working well, almost. I am using this filter and in the most cases it is enough. Sometimes I have to load Collection with size(). The another solution is to store only keys in the session and load the o

Struts2 / Hibernate Question

2009-10-23 Thread Dennis Atkinson
Hello all. I am running into the infamous "closed session" issue, whereby I get a LazyInitializationException on a lazy-initialized foreign key relationship. The issue, as I understand it, is that the session is closed before the lazy-initialized objects need to be read from the database, so t