Re: Writable FKs

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Oct 20 2010 - 07:28:19 UTC

  • Next message: Andrus Adamchik: "Re: OnPrePersist not working"

    On Oct 19, 2010, at 10:36 AM, Borut Bolčina wrote:

    > This way using
    >
    > street.setTown(localTown);
    >
    > does not set the relationship, it inserts NULL for town_id FK in the streets
    > table. Or did you mean something else?

    Probably (?) didn't quite get the explanation of your mapping. Anyways, have you tried setting meaningful FK, mapped as an ObjAttribute?

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Oct 20 2010 - 07:28:54 UTC