Re: Hierarchical relationship problems

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Apr 28 2005 - 17:35:51 EDT

  • Next message: Filip Balas: "Re: Hierarchical relationship problems"

    <obj-relationship name="phone_numbers" source="Location"
    target="PhoneNumber" db-relationship-path="rel_ph_loc.phone_nums"/>

    <obj-relationship name="location" source="PhoneNumber"
    target="Location" db-relationship-path="rel_ph_loc.location"/>

    The relationships above are flattened (i.e. they consist of multiple db
    relationships -
    http://objectstyle.org/cayenne/modelerguide/modeling-object-layer/flattenedrel.html)...
    So this is exactly the case that I was talking about.... Now why are they
    treated as read-only? My guess (without trying) is that join table columns
    are not marked as PK:

    <db-entity name="IMV_location_phone_nums" schema="dbo">
      <db-attribute name="location_id" type="INTEGER" length="10"/>
      <db-attribute name="phone_id" type="INTEGER" length="10"/>
    </db-entity>

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Apr 28 2005 - 17:35:53 EDT