saveOrUpdate

From: Gili (cowwo..bs.darktech.org)
Date: Wed Sep 07 2005 - 09:50:35 EDT

  • Next message: Mike Kienenberger: "Re: saveOrUpdate"

    Hi,

            This is related to
    http://www.objectstyle.org/cayenne/lists/cayenne-devel/2005/07/0006.html

            Hibernate has session.save(), update() and saveOrUpdate(). I'm looking
    for the equivilent of the latter in Cayenne. This is simply a
    convienience method that registers an object with the context if it
    isn't already registered. I would use it after foo =
    foo.getCanonicalState() because this method might return a registered
    object or it might return foo which is not yet registered.

            In the mailing list, when Andrus said this is "fixed" in CVS, did he
    mean that DataContext.registerNewObject() already behaves like I mentioned?

    Thanks,
    Gili

    -- 
    http://www.desktopbeautifier.com/
    



    This archive was generated by hypermail 2.0.0 : Wed Sep 07 2005 - 09:50:37 EDT