Re: Modeler question for one-to-one logical mapping

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Jul 06 2003 - 00:06:56 EDT

  • Next message: Tore Halset: "Duplicates in log4j output"

    > Andrus:
    >
    > I changed the toDependentPK to false. I still see the same error. Do
    > you want me to delete the whole entry?
    >

    No, please don't. It looks like I got carried away with this "to dep pk"
    investigation. It has nothing to do with the error that you quoted.

    >> > Caused by: java.sql.SQLException: More than one row for
    >> 'RaceDBEntity'
    >> > at
    org.objectstyle.cayenne.dba.mysql.MySQLPkGenerator.getPrimaryKey(MySQLPkGenerator.java:166)

    This error message actually means what is says. There is at least 2 rows
    for "RaceDBEntity" in a primary key lookup table called "AUTO_PK_SUPPORT"
    (and only one row for each DbEntity is expected). Please delete one of
    them manually, and everything should start working again.

    Andrus



    This archive was generated by hypermail 2.0.0 : Sun Jul 06 2003 - 00:06:57 EDT