Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Reported by Caroline Briffa
-------------------------------------
We have found what looks like a bug in the HibernateForm. When setting the value object with an object loaded by hibernate in a previous session we were getting a NPE when the component was trying to acquire the class meta data from hibernate. Our class has lazy loaded sets and the CGLib was creating proxies for them. CGLib also changes the class signiture to class_name$$enchancedByCGLib$$hashcode. The meta info for the class was therefore not being loaded.
We have modified the HibernateForm to use the substring before the $$ as the class name. The problem seems to be solved. A modified HibernateForm.java is attached for your info.