Hi everyone,
I have read a lot of posts about this and would like some more information. Please read on.
I have created a database schema using hibernate, and a another colleague is inserting a large amount of data. When I use the hibernate generated database with test data the data access objects work, when i use the hibernate database with the entire dataset I have the following error:
org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of <package>.<class>.setField1 etc
I noticed:
1- The field name "Field 1" does not belong to the class specified within the package declaration.
2 - When i set hibernate.cglib.use_reflection_optimizer= false within the hibernate.cfg.xml it doesn't give me any extra information and if I block it out it doesn't change anything either. Am i setting this property in the right location??
I assume there is a small difference between the two databases that could be causing the problem. I've been checking to make sure all the types match etc. If you could point me in the right direction as to how to retrieve more information about the error, where the problem is etc or other areas I should be investigating would be appreciated.
Thanks, Alyssa.
|