Hi all!

I've had quite a lot problems trying to have OJB objects include references to classes of same type. Like User having another User as creator. When trying to persist the class's field isn't filled with the creator's user name etc.

Mapping file snipped as follows:
 <reference-descriptor
        name="createdBy"
        class-ref="User"
>
        <foreignkey field-ref="creator"/>
</reference-descriptor>

The class has field String creator (foreign key ref to user table's username column) and field User createdBy. All fields are introduced in the mapping file too.

Is this even possible and are there any examples of this?

Regards,
Marko



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



Reply via email to