Re: getObjectId() returns NULL

From: Bryan Lewis (brya..aine.rr.com)
Date: Sun Jan 09 2005 - 11:15:50 EST

  • Next message: Jürgen Saar: "Re: Newbie: connected user"

    Depends on what you mean by "sometimes". Is the objectId sometimes null for
    repeated queries on the same entity, or is it null only for some entities?
    If it's the latter case, maybe this previous thread will help:
    http://www.objectstyle.org/cayenne/lists/cayenne-user/2004/09/0098.html

    I was getting null objectId's because the attribute names in my DataMap
    didn't use the same upper/lower case as the database used.

    ----- Original Message -----
    From: "Joaquin Arias Buendia" <joaqinbuendiaforu..ahoo.es>
    To: <cayenne-use..bjectstyle.org>
    Sent: Sunday, January 09, 2005 9:29 AM
    Subject: getObjectId() returns NULL

    > Hello!
    >
    > Sometimes, when I store and load a new object from
    > database, getObjectId() returns NULL. Any idea?
    >
    > Thak you very much!!
    >
    >
    >
    >
    > ______________________________________________
    > Renovamos el Correo Yahoo!: ¡250 MB GRATIS!
    > Nuevos servicios, más seguridad
    > http://correo.yahoo.es



    This archive was generated by hypermail 2.0.0 : Sun Jan 09 2005 - 11:16:22 EST