Hi

Just a suggestion:

===========================
ObjectA
id: int
objB: ObjectB
===========================
ObjectB
id:int
===========================
ObjectC extends ObjectB
id: int
name: String
===========================

All these objects are in the mapping.xml file. Now, if I create ObjectA,
passing in ObjectC:

ObjectA objA = new ObjectA();
objA.setObjectB (new ObjectC());

Castor is not smart enough to know that it is ObjectC that is passed in,
thus using ObjectC's mapping. Instead, the SQL is fixed to use ObjectB's
mapping. Pity.

Regards
Keith C

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to