Ask
your own question, for FREE!
Computer Science
43 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
JBlizzy:
the old me and new me the old me would let people push him around and he would ta
unknownnnnnn:
life is great. life is great, right? parents separate parents fight 24/7 walls shake doors slam silence feels louder than screaming father cheats like vows
jhaseker:
I need a creator to explain dis but why there lines on my chat like symbols
addison123456:
Iu2019m just so tired, like completely drained. I donu2019t even want to be here anymore; the weight of everything is just too much to carry.
CloverKris:
If I were to make a bullet game similar in gameplay to the famous Touhou, does an
DemonKinge:
I wasn't on during new year. So Happy New Year everyone hope this year goes great
Lillys2account:
this one is called u201cHard to Wake Upu201d Lately the sun feels heavy on my eye
unknownnnnnn:
One Year Without You... Today is the date he left my life. Last year, he wasnu2019t ready to go.
CloverKris:
it's all in the mind - CloverKris __________________________________ rip it out o
18 minutes ago
0 Replies
0 Medals
5 hours ago
6 Replies
1 Medal
23 hours ago
16 Replies
2 Medals
1 day ago
0 Replies
0 Medals
5 hours ago
4 Replies
1 Medal
1 day ago
22 Replies
1 Medal
1 day ago
8 Replies
5 Medals
2 days ago
16 Replies
5 Medals
3 days ago
0 Replies
0 Medals