[hibernate-dev] JPA merge question about detached entity with lazy fields that haven't been fetched...
Scott Marlow
smarlow at redhat.com
Wed May 16 08:28:58 EDT 2012
According to JPA 2.0 specification section 3.2.7.1, when merging a
detached entity with lazy associations that haven't been fetched:
"
The persistence provider must not merge fields marked LAZY that have not
been fetched: it must ignore such fields when merging.
"
After merging an entity, will accessing one of the entities LAZY fields
(that was previously not fetched) result in a lazy initialization error
or will we try to fetch from the database?
Scott
More information about the hibernate-dev
mailing list