RE: Generated ID in 1.2?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed May 25 2005 - 15:51:47 EDT

  • Next message: Alan Guo: "Re: Cayenne 1.1.2 modeler can not load project built in 1.1RC2"

    > Hi Andrus,
    >
    > OK -- I did not check this field as a PK since I was trying to have a
    > composite PK with the generated PK being used for references. I can
    > create what I want in code by checking for duplicates of the composite
    > fields but if I make all three fields PKs then there will always be a
    > unique key no matter how many duplicates of the composite key(s)
    > exist....
    >
    >
    > I'll think about what I am doing to see if there is a way to bend this
    > into your design so far.
    >
    > Best,
    >
    > Joe

    "PK" and "Generated" checkboxes are NOT mutually exclusive. So if a column
    is a part of a composite PK it has to be setup as such, regardless whether
    it is an object attribute or not. So I don't think you need to "bend"
    anything - Cayenne should wrk fine with composite keys.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed May 25 2005 - 15:51:48 EDT