Ask
your own question, for FREE!
Computer Science
17 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
InPinkLuv:
I am gonna cut, the ties that bind The weight of the world, that's crushing my mind The darkness closes in, like a shroud on my skin I'm searching for escap
breiadabrattzz:
Explain how your images are visual representations of the implied messages in Derek Walcott's poem "Elsewhere".
addison123456:
guys can someone help me with this complicated question.
KyleeR:
How is Iago's statement, "I am not what I am," an example of dramatic irony? (2 s
KyleeR:
What does Iago mean when he says, "I am not what I am"? (1 sentence)
jefferson817066:
To kick off the summer, Maura is planning a "School's Out!" party for all her friends.
Bry4nBl4ir:
Tell me the craziest thing that happened in your class without lying. I'm curious
7 hours ago
5 Replies
0 Medals
10 hours ago
7 Replies
0 Medals
14 hours ago
6 Replies
0 Medals
17 hours ago
0 Replies
0 Medals
17 hours ago
0 Replies
0 Medals
9 hours ago
4 Replies
2 Medals
1 hour ago
5 Replies
1 Medal