In some cases it is not known until runtime wat the type of an object
stored in a field is:
@TmEntity
class A{
Object o;
}
@TmEntity
class B{
}
It could be that o is of class Integer for example, but it could also be
that o is of class B. If it is of class B, it should be persisted in the
stm as well.
So some extra conditional logic needs to be executed. See the
ExampleStackNode for an example of this polymorphic behavior.
- this needs to be done in the entity.constructor
- this needs to be done in the entity.walkMembers method
- this needs to be done in the entity.isDirty method.
- this needs to be done in the dematerialized.constructor
Original issue reported on code.google.com by alarmnum...@gmail.com on 19 May 2009 at 4:58
Original issue reported on code.google.com by
alarmnum...@gmail.com
on 19 May 2009 at 4:58