Hello,
I would like in Our project witch Hibernate 3.2.5 switch cglib to javassist.
Hibernate configuration is stored in file myProject.properties and load
using:
... AnnotationConfiguration lvConf = new AnnotationConfiguration(); lvConf.setProperties(pmHbProperties);
In properties file I wrote:
hibernate.bytecode.provider=javassist
but Hibernate still is using cglib (in properties is property hibernate.bytecode.provider=javassist).
javassist is using only when I set system property before conf:
System.setProperty(Environment.BYTECODE_PROVIDER,"javassist"); AnnotationConfiguration lvConf = new AnnotationConfiguration();
Is this Hibernate bug ?
Can I do this by properties file ?
I can't upgrade HB to 3.3.1
thanks in advance
EN
|