You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Mark H <ma...@markhorgan.com> on 2003/05/10 22:00:16 UTC

auto-update="false" but still setting foreign-key

Hi there,

I have a linked object that I dont't want to update/delete but do want to
retrieve. When I save a new object it sets the foreign-key (handlerId below)
even though I've asked it not to update the linked object. It doesn't
actually save the linked-object and the foreign-key seems to be set to what
it would be if it did save it. Anybody else come across this?

Thanks,
Mark

<field-descriptor name="handlerId" column="i_handlerId" id="3"
jdbc-type="INTEGER" data-type="integer"/>

<reference-descriptor name="handler"
class-ref="ie.dkit.careers.models.form.User" auto-retrieve="true"
auto-update="false" auto-delete="false">
    		<foreignkey field-id-ref="3"/>
</reference-descriptor>

version 0.9.9