Ask
your own question, for FREE!
Computer Science
7 Online
: Hibernate/Spring: how to solve the problem failed to lazily initialize - no session or session was closed
Still Need Help?
Join the QuestionCove community and study together with friends!
You try to access some lazy field (usually collection) in entity which is in detached state. You can try to use FetchType.EAGER in relation annotation. Or just access this field while session is not closed.
Thank you for your idea. Any idea if we don't want to use FetchType.EAGER ?
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
addison123456:
I have a quote that will hit hard but someone needs to tell me what it means. "I am not crying over you.
breiadabrattzz:
Do anyone know how to use Canva and do like personal photos for UNT Denton and in
xXAikoXx:
Can peanut oil cause allergic reactions to someone with a peanut allergy?
gelphielvr:
How does a person's community (where they are from, who they surround themselves with, their u201cpeopleu201d, etc.
Nina001:
I need ideas on what religion I should do on my history project and some good facts.
14 hours ago
91 Replies
0 Medals
2 hours ago
58 Replies
5 Medals
1 day ago
12 Replies
0 Medals
1 day ago
2 Replies
1 Medal
1 day ago
4 Replies
0 Medals