I'm using hibernate 2.0.3.
I have an error
Caused by: net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of org.astri.ims.ccs.pes.dataobjects.Firmware.?
I would like to set cglib.use_reflection_optimizer=false. I know this is a system level setting, so I would like to set it in hibernate.properties
I could do it before, but when I moved the code to a new project, i don't know why the file hibernate.properties cannot be read, no matter where I place it (from the document, it should be ok as long as it is in the classpath, but still it cannot be reached). I tried to set it in hibernate.cfg.xml in the following line
<property name="cglib.use_reflection_optimizer">false</property>
The previous problem still exists.
Could anyone give hints for solving this?
|