Ask
your own question, for FREE!
Computer Science
33 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
curriful:
Is there a maximum to how many emojis you can add onto a QC group? Or is it limit
zanesafoodie:
have any of you worked with a teacher that you physically just CAN'T suck it up a
Shadow:
Hello QuestionCove Users! Today we are officially announcing two promotions to our staff, @eiwoh2 (Howie) as our new Senior Moderator, and @axie as our new
Arizona:
I'm Doing the ACT testing tomorrow which I feel like I don't even want to try but my friends are making me.
Twaylor:
NASA's Artemis II will be going around the moon today at exactly 1 pm EST (right now) https://www.
lovelove1700:
I need help with this song. I just need the lyrics for the song, nothing more. I need it for a school project.
ARAAG:
I need help working on new song lyrics and ideas! If anyone could help me that wo
20 minutes ago
1 Reply
0 Medals
23 hours ago
1 Reply
0 Medals
3 hours ago
29 Replies
13 Medals
1 day ago
4 Replies
2 Medals
1 day ago
1 Reply
1 Medal
2 days ago
0 Replies
0 Medals
1 day ago
16 Replies
1 Medal