-
Mar 18th, 2013, 09:23 AM
#1
Webflow JPA , org.hibernate.LazyInitializationException
Hi ,
I'm facing a problem that is exposed several time here ,
I'm using webflow , Jpa and hibernate , and i m having "org.hibernate.LazyInitializationException: failed to lazily initialize a collection : no session or session was closed "
the <persistence-context /> is declared in the flow .
The problem occurs like this :
I have an entity Entity1 that have several Lazy Collection, i enter a modification Flow of this entity , made some ajax request that loads the lazy collections. Till now no problem , i can trigger any ajax action that deals with those lazy collections with no problem.
The problem occurs when i quit the flow and go back to modify the same row.
i debuggued the AbstractPersistentCollection hibernate class , and the session is null.
I don't want to use the OSIV , neither an hibernate specific solution (I'm using JPA) or make the fetch EAGER, i want to resolve this with webflow.
Thank you in advance for your Help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules