Ask your own question, for FREE!
Computer Science 44 Online
OpenStudy (anonymous):

: Hibernate/Spring: how to solve the problem failed to lazily initialize - no session or session was closed

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

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!
Latest Questions
Breathless: womp
41 minutes ago 0 Replies 0 Medals
Breathless: yo who wanna match pfp?
43 minutes ago 11 Replies 1 Medal
Ylynnaa: This was long time ago lmk if u fw itud83dude1d
4 hours ago 17 Replies 2 Medals
abound: Wow question cove really fell off
6 hours ago 6 Replies 1 Medal
ayden09: chat i love black pink hehe i like jones to
6 hours ago 20 Replies 2 Medals
kamani7676: help
1 day ago 5 Replies 1 Medal
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!