Ask
your own question, for FREE!
Computer Science
44 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
ShinePrincess:
Write a function that will create the following transformation. Shift f(x) down 3
forgetmylife:
Only the real understand ud83eudd26ud83cudffdu2642ufe0f I'm tired. Tired of the constancy, the constancy of judgment.
rishavraj:
Just trying to find a friend. We met on openstudy, her nickname on there was something "tarantula".
Subshilava:
Which sentence follows correct grammatical conventions? ) u2022 The crow in that bush squawk loudly at the hawks.
7 minutes ago
0 Replies
0 Medals
10 hours ago
2 Replies
1 Medal
1 hour ago
4 Replies
0 Medals
1 day ago
4 Replies
3 Medals