| Author |
LazyInitializationException Help please
|
Milan Djukic
Greenhorn
Joined: Feb 14, 2011
Posts: 27
|
|
Hi all.
Please help me, this is killing me
I have two classes A and B.
And when i call find method of class EntityManager find(A.class,id) i get a org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: ......
How can i solve this, this is really killing me
|
 |
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1300
|
|
|
change lazy to eager fetching strategy.
|
 |
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1300
|
|
|
Make sure Hibernate session is used after session is closed
|
 |
 |
|
|
subject: LazyInitializationException Help please
|
|
|