A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way
Joined: Feb 05, 2001
Oct 12, 2009 20:29:54
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.
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
It is sorta covered in the
JavaRanch Style Guide
subject: ClassCastException from Domain object to CGLIB??? Why is it trying to cast that way
SCJP: playing with inheritance and when what calls what.
Calling java program from groovy...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014