File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 17249
    
    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 - Two Laptop Bag - Tube Organizer
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
 
Similar Threads
Calling java program from groovy...
SCJP: playing with inheritance and when what calls what.
ListOrderedMap
Groovy/JSON/sql.Date
Cookies doubt