Re: [hibernate-dev] To identify the version of Hibernate ORM at runtime

2015-03-03 Thread Steve Ebersole
I just personally never knew about this method :) On Mon, Mar 2, 2015 at 10:03 AM, Sanne Grinovero wrote: > On 2 March 2015 at 15:49, Gunnar Morling wrote: > > > > > > 2015-03-02 16:22 GMT+01:00 Sanne Grinovero : > >> > >> On 2 March 2015 at 15:05, Steve Ebersole wrote: > >> > Hmm, I had used

Re: [hibernate-dev] To identify the version of Hibernate ORM at runtime

2015-03-03 Thread Steve Ebersole
I think we should point out that this method is only available (iiuc) when running with "from a jar". Which means it won't work, for example, in our test suites. I assume we'd just get blanks or nulls there. On Tue, Mar 3, 2015 at 9:18 AM, Steve Ebersole wrote: > I just personally never knew a

Re: [hibernate-dev] To identify the version of Hibernate ORM at runtime

2015-03-03 Thread Gunnar Morling
Yes, that's true. It returns null when being run for classes obtained from a directory rather than a JAR. I noticed the same btw. when running tests in the IDE for the injection stuff we e.g. use in HV, but it never was a problem for us there. 2015-03-03 16:20 GMT+01:00 Steve Ebersole : > I thi