Issue with createCriteria result set, class name appended by _$$_javassist_
Posted by Pankil Patel on November 8, 2011
Issue: _$$_javassist_ is appended after class name, when you are using createCriteria(xyz.class) which have <set> or <bag> (one-to-many) relationship with Object that having <composite-id> instead of <id>.
Resolution: Instead of Using createCriteria(xyz.class), use EntityName for Criteria Query.
Ex: DetachedCriteria detachedCriteria = DetachedCriteria.forEntityName(“xyzSearch”);
Impact of Issue:
- For java, if you are using any code which have comparison with class name it will fail in that case.
- If you are using any communication by RMI like: Spring BlazeDS for Flex & Java, It will not able to cast the Object in proper format & will give result in generics Object format.
Advertisement