Re: [hibernate-dev] Hibernate#isPropertyInitialized vs Hibernate#isInitialized

2017-03-09 Thread Steve Ebersole
Maybe this helps: 1. the attribute is not loaded at all (no PersistentCollection creation) 1. Hibernate.isPropertyInitialized( enhancedEntity, "extraLazyCollection" ) -> returns false 2. Hibernate.isInitialized( enhancedEntity.getExtraLazyCollection() ) -> irrelevant, the g

Re: [hibernate-dev] Hibernate#isPropertyInitialized vs Hibernate#isInitialized

2017-03-09 Thread Gail Badner
Oops, sorry for the confusion. They should have referred to Hibernate#isInitialized. I'll fix and clarify below... On Thu, Mar 9, 2017 at 4:58 AM, Steve Ebersole wrote: > Your subject says `Hibernate#isInitialized` but then your examples refer > to `Hibernate#initialize`. Which are your referr

Re: [hibernate-dev] Hibernate#isPropertyInitialized vs Hibernate#isInitialized

2017-03-09 Thread Steve Ebersole
Your subject says `Hibernate#isInitialized` but then your examples refer to `Hibernate#initialize`. Which are your referring to? Because in some cases you genuinely seem to be referring to `#initialize`, but then you keep referring to its return value - `#initialize` has no return. On Thu, Mar