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

[hibernate-dev] 6.0 - design question: "model navigation" exposed as an API?

2017-03-09 Thread Steve Ebersole
Currently in 6.0 we have the notion of a Navigable which models any "piece" of the application's domain model[1]. We also have the notion of a NavigableVisitationStrategy which defines the strategy for handling the visitation of the nodes in a Navigable tree. In other words, Hibernate defines a c

Re: [hibernate-dev] 6.0 - design question: "model navigation" exposed as an API?

2017-03-09 Thread Alessio Stalla
Well, as the developer of a framework that uses Hibernate for persistence, I say yes to more introspection APIs :) On 9 March 2017 at 17:35, Steve Ebersole wrote: > Currently in 6.0 we have the notion of a Navigable which models any "piece" > of the application's domain model[1]. We also have t

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
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] 6.0 - design question: "model navigation" exposed as an API?

2017-03-09 Thread Christian Beikov
Is there a definition to what @Incubating means? I'd rather not make it an API until we played a little with it for new features. Mit freundlichen Grüßen, *Christian Beikov* Am 09.03.2017 um 17:35 schrieb Steve Ebersole: >

Re: [hibernate-dev] 6.0 - design question: "model navigation" exposed as an API?

2017-03-09 Thread Steve Ebersole
That's basically exactly what @Incubating means - we are exposing this new API/SPI but users should fully expect the contracts to change. Basically the annotated API/SPI is not held to our normal compatibility rules - this is a new thing and we assume it will evolve in use On Thu, Mar 9, 2017, 3:

Re: [hibernate-dev] 6.0 - design question: "model navigation" exposed as an API?

2017-03-09 Thread Christian Beikov
In that case I'd say let's do it if it makes sense :) Mit freundlichen Grüßen, *Christian Beikov* Am 10.03.2017 um 00:14 schrieb Steve Ebersole: > > That's basically exactly what @Incubating means - we are exposing this > n