I'm using Hibernate 3.1.3.
When I call buildSessionFactory(), as in:
Configuration cfg = new Configuration();
Configuration cfg2 = cfg.configure();
sessionFactory = cfg2.buildSessionFactory();
I get:
java.lang.ClassCastException: java.lang.Integer
at org.hibernate.util.PropertiesHelper.resolvePlaceHolders(PropertiesHelper.java:88)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1173)
[snip]
After some searching, this issue seems to be related to the following known bug:
http://opensource.atlassian.com/project ... e/HHH-1560
The fix is mentioned as being in 3.2CR2 and the unreleased 3.1.4.
How risky is 3.2CR3? My application is in final testing and I'd much rather use an older stable version rather than a newer version at this point. However, I want this fix.
Is there a preview build of 3.1.4? Which is safer building my own 3.1.4 build from source code or upgrading to 3.2CR3?