Hello Joerg,
in the turorial3.html file ( doc ).
see the section mapping inheritance hierarchy to the same table.
as far as I understand it's required additional column in the table
<field-descriptor
         name="ojbConcreteClass"
         column="CLASS_NAME"
         jdbc-type="VARCHAR"
/>

or you have to derive a Class from 
org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
and overwrite the method selectClassDescriptor to implement your specific type 
selection
mechanism

hope to help you.

JL> hi,
JL> i want to map two classes to the same table.
JL> -PartentA
JL>     -ChildA
JL>     -ChildB

JL> ParentA is abstract. ChildA and ChildB must be retrieved by using
JL> the same atttributes (inherited from ParentA).

JL> I tried it, but by using the unique-key as
JL>  >>>crit.addEqualTo("id", "515522");
JL> the wrong class is returned.

JL> is there anything special to do in the mapping?

JL> joerg


JL> ---------------------------------------------------------------------
JL> To unsubscribe, e-mail: [EMAIL PROTECTED]
JL> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Best regards,
 Alexander                            mailto:[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to