Re: [hibernate-dev] API/SPI in 5.0

2014-02-07 Thread Emmanuel Bernard
On Thu 2014-02-06 21:08, Emmanuel Bernard wrote: > > On 06 Feb 2014, at 14:52, Steve Ebersole wrote: > > > > > On Thu, Feb 6, 2014 at 7:01 AM, Emmanuel Bernard > > wrote: > > For OGM the impact is less but in > > Integrator.integrate > > we use Configuration to be able to conditionally add a

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
On Thu 2014-02-06 21:52, Hardy Ferentschik wrote: > > On 6 Jan 2014, at 15:10, Steve Ebersole wrote: > > > On Thu, Feb 6, 2014 at 6:46 AM, Emmanuel Bernard > > wrote: > > > > Configuration.getreflectionManager (optional) > >> > > > > We do not use commons-annotations anymore at all (yaay!).

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Hardy Ferentschik
On 6 Jan 2014, at 15:10, Steve Ebersole wrote: > On Thu, Feb 6, 2014 at 6:46 AM, Emmanuel Bernard > wrote: > > Configuration.getreflectionManager (optional) >> > > We do not use commons-annotations anymore at all (yaay!). If you need > access to this type of functionality, I have been think

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
On 06 Feb 2014, at 15:10, Steve Ebersole wrote: > > On Thu, Feb 6, 2014 at 6:46 AM, Emmanuel Bernard > wrote: > > Configuration.getreflectionManager (optional) > > We do not use commons-annotations anymore at all (yaay!). If you need access > to this type of functionality, I have been thi

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
On 06 Feb 2014, at 14:52, Steve Ebersole wrote: > > On Thu, Feb 6, 2014 at 7:01 AM, Emmanuel Bernard > wrote: > For OGM the impact is less but in > Integrator.integrate > we use Configuration to be able to conditionally add a naming strategy > configuration.setNamingStrategy(). > See this ac

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Steve Ebersole
On Thu, Feb 6, 2014 at 6:46 AM, Emmanuel Bernard wrote: Configuration.getreflectionManager (optional) > We do not use commons-annotations anymore at all (yaay!). If you need access to this type of functionality, I have been thinking about passing along access to the Jandex index we use. > The

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Steve Ebersole
On Thu, Feb 6, 2014 at 7:01 AM, Emmanuel Bernard wrote: > For OGM the impact is less but in > Integrator.integrate > we use Configuration to be able to conditionally add a naming strategy > configuration.setNamingStrategy(). > See this actually illustrates the problems with Configuration, so thank

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
For OGM the impact is less but in Integrator.integrate we use Configuration to be able to conditionally add a naming strategy configuration.setNamingStrategy(). Not sure what to do here either in the ntegrate(MetadataImplementor, SessionFactoryImplementor, SessionFactoryServiceRegistry) case.

Re: [hibernate-dev] API/SPI in 5.0

2014-02-06 Thread Emmanuel Bernard
I have looked at Search and identified the elements that use Configuration and it's access to mapping. During bootstrap via an Integrator, we use Configuration.getProperties() Configuration.getreflectionManager (optional) cfg.getClassMappings() The properties are used to bootstrap Hibernate Sear

Re: [hibernate-dev] API/SPI in 5.0

2014-02-04 Thread Gunnar Morling
Hi Steve, Regarding Configuration, is there an example somewhere which shows how a session factory is to be bootstrapped using the new approach? Thanks, --Gunnar 2014/1/31 Steve Ebersole > As we transition to 5.0 we have to make a lot of decisions wrt API/SPI > methods that are no longer r

[hibernate-dev] API/SPI in 5.0

2014-01-31 Thread Steve Ebersole
As we transition to 5.0 we have to make a lot of decisions wrt API/SPI methods that are no longer relevant. I think it is better to look at these individually. == Configuration I went ahead and made a preliminary decision here as I discussed in HHH-7164. The thinking is that we had some leew