Regular |
|
Joined: Wed Jan 21, 2009 8:41 pm Posts: 54
|
In order to get naturalId working I'm using Criteria as it seems to be the only way for it to work.
However, I end up with a LazyInitializationException with a FetchMode.JOIN and I have no detactched instances. I am however using unwrap to get the HibernateEntityManager so I can get it's session.
Why would I get LazyInitializationException when performing a fetch like this?
Has anybody clarified how you can get an eager fetch when using HQL or JPQL?
Must you actually join your entities in the query for this to work?
|
|