This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 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
 
Don't get me started about those stupid light bulbs.
 
subject: ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way
 
Similar Threads
SCJP: playing with inheritance and when what calls what.
ListOrderedMap
Groovy/JSON/sql.Date
Calling java program from groovy...
Cookies doubt