Re: DataObjectUtils.objectForPK

From: Mike Kienenberger (mkienen..laska.net)
Date: Thu Feb 17 2005 - 12:47:06 EST

  • Next message: Gentry, Michael \(Contractor\): "RE: Modeller Question"

    Claudio Rosati <claudio.rosat..csys.it> wrote:
    > I create a new object using DataCointext.createAndRegisterNewObject(....).
    > Without committing I use DataObjectUtils.objectForPK(...) to retrieve the
    > object whose String pk is initialized in the constructor, but the returned
    > value is null.
    >
    > Is that correct? Can I retrieve the object in a different manner (without
    > using its reference. The problem is that I'm in a D&D operation and I'm
    > moving just the pk String value instead if the object, and this is OK for
    > object in the DB, but not for object just created and not yet committed).

    I don't know about manually-set PKs, but for auto PK Generation, the PK is
    only set during commit.

    -Mike



    This archive was generated by hypermail 2.0.0 : Thu Feb 17 2005 - 12:46:24 EST