Hi,

I'm using your template application 
http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html
http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html .

The difference is that in my application class Person have a Set<Job> jobs.
But, when I try to load person with person = service.find(id);and then to
access to jobs, e.g., person.getJobs(), I get LazyInitializationException !! 

I now that Hibernate session is closed, I've tried with
Hibernate.initialize(person.getJobs()), but it is the same ! Please, help
because I think this is MAJOR problem with every Struts + Spring + Hibernate
application.

Thank you in advance.

--
Milan
-- 
View this message in context: 
http://www.nabble.com/LazyInitializationException-with-Struts-2-%2B-Spring-2-%2B-JPA-%2B-AJAX-application-tp18155823p18155823.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to