
How do I extend an existing spring 3 entity object without throwing casting exceptions? I need to add a method to a base class
The existing object is: @RooJavaBean @RooToString @RooEntity public class A {
and the child is: public class ASub extends A {
Currently I get: java.lang.ClassCastException: com.foo.A cannot be cast to com.foo.ASub
I tried adding this to context.xml:
Nothing complained on startup, but it didn't help.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.