Re: Primary Key Generation-SQL Server 7.0

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Feb 27 2003 - 10:52:07 EST

  • Next message: Craig Miskell: "Re: [question]: problems with n:m mappings (flattened-relationships)."

    Hi Miguel,

    I never tried Cayenne with SQL Server, so I may not be aware of any
    issues, but have you tried generating PK support per this chapter in
    Modeler Guide:

       http://objectstyle.org/cayenne/modelerguide/pksupport.html

    Andrus

    > Hi
    >
    > I want to use cayenne with SQL Server but when I try to add new values
    > to the table it throws an error of generation of PK. Then I have used
    > Meaningful Primary Key and it runs well, but I want to use the identity
    > attribute of the table to generate PK automaticatlly. When I don't set
    > the key attribute to the DataObject it throws an exception (error.txt).
    >
    > best regards,
    >
    > Miquel
    >



    This archive was generated by hypermail 2.0.0 : Thu Feb 27 2003 - 10:52:08 EST