I am trying to add cglib as the default byte code provider. I am using the hibernate.cfg.xml file to set up a factory session.
<property name="hibernate.bytecode.provider">cglib</property>
Above the line of code in my configuration file, no behavior changes occur. It still installs javassist as a javassist provider.
It turns out that "javaassist" is set as the default provider. This configuration is updated in the environment hibernate.properties form file. I did not find a reference to the bytecode code creator method anywhere except in the static initializer of the Environment class.
Is there any final way to assign a default byte generator from xml configuration files.
source share