This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way" Watch "ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way" New topic
Author

ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17276
    
    6

Anyone ever come across the scenario where you eager fetched some Domains so that they are the real domain object, that later when accessing them Hibernate tried to cast them to CGLib Proxies instead?

Our Domain objects are Groovy, so it is possible that Groovy is doing something weird accessing the class attribute.

Thanks

Mark


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way
 
It's not a secret anymore!