RE: String as Primary Key

From: Fredrik Liden (flide..ranslate.com)
Date: Fri Feb 18 2005 - 21:45:15 EST

  • Next message: Pirola Davide: "Global exception"

    Never mind, I forgot that I had added

    DataObjectUtils.intPKForObject(budget));

    In the code. :)

    Fredrik Liden

    -----Original Message-----
    From: Fredrik Liden
    Sent: Friday, February 18, 2005 6:42 PM
    To: cayenne-use..bjectstyle.org
    Subject: String as Primary Key

    Is it a requirement that the PK be a numeric value?
    I'm using varchar but now I keep getting an error message when I try to
    obtain the dataObject using:

    (Budget) DataObjectUtils.objectForPK(context,Budget.class,"1");

    Or is it something with the parameter to the ObjectForPK?

    Fredrik Liden



    This archive was generated by hypermail 2.0.0 : Fri Feb 18 2005 - 21:44:55 EST