posted 11 years ago
I have two classes
Class A
Class B
class B extends A
i m storing it in mongodb as follows
A a=new B();
crud.save(a);
the data is being stored with _class : B
But i want to store it as A,
Is it possible?
Can i store the object with _class as its superclass?