Yes !
I've tried and its working :)
Its strange but some month ago I did the same thing but its wasn't working
I need time to play with this aproach

Thanks Armin and all who tried to solve my problem - I have not found more responsive forum than this ;)


Armin Waibel wrote:

I saw ReferenceTest test worked with OJB 1.0.1 too, with a different mapping of the interface. Did you tried to declare the reference-descriptor and fk-field in the interface class mapping too?

e.g.
Class RefObject is an interface

<class-descriptor class="org.apache.ojb.broker.ReferenceTest$RefObject">
<extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjA"/>
<extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjB"/>
<extent-class class-ref="org.apache.ojb.broker.ReferenceTest$ObjC"/>


        <field-descriptor
             name="fkId"
             column="FK_REF"
             primarykey="false"
             jdbc-type="INTEGER"
            access="anonymous"
        />

        <reference-descriptor
            name="ref"
            class-ref="org.apache.ojb.broker.ReferenceTest$RefObject"
            proxy="false"
            auto-retrieve="true"
            auto-update="true"
            auto-delete="false">
                <foreignkey field-ref="fkId"/>
        </reference-descriptor>

    </class-descriptor>

If this doesn't work, try the mapping mentioned by Tom.

regards,
Armin


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



Reply via email to