dear all,
i ve got a few question on how 'extends' is used in Castor JDO.
it seems that:
1. i have class B extends class A, both are cached.
2. i first load an instance of class A, (e.g. db.load(A.class, id))
3. load an instance of class B but with the same identity, (e.g.
db.load(B.class, id))
the object returned in the second load will be of class A (but what i expect is
an object of type class B).
i tried to load an object of class B alone and it seems to work just fine.
is this the intended behaviour / what i think is incorrect ?
also in castor, can i have, let say:
1. class B, C, and D all extends class A (A maps to table TAB_A)
2. B, C and D all mapped to the same table (table TAB_BCD).
3. row in table TAB_BCD can be distinguished into class B, C or D depends on the
value in one of the column in the table (say, there is a column named
'CLASS_TYPE', if CLASS_TYPE = 'B' then the row representing an object of class B
and so forth).
is there anyway in doing the above in Castor?
regards,
dave
_______________________
CONFIDENTIALITY NOTICE:
This message, together with any attachment, is intended only for the use of the
individual or entity to whom it is addressed and contains information that is
privileged and confidential. If you are not the intended recipient, please be
informed that any dissemination, distribution or reproduction of this message
(including any attachment) is strictly prohibited. If you have received this message
in error, please notify us immediately by return e-mail and delete the original
message. Thank you.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev