Re: save As

From: stefan.leidne..udor.lu
Date: Mon Nov 14 2005 - 05:32:04 EST

  • Next message: Lothar Krenzien: "missing values from database object"

    in fact I badly expressed myself
    I have an object root "Project" referred in my current DataContext.
    This object has references towards other objects also referred in this
    DataContext.
    here's my problem: in fact I would simply like to record a copy of this
    Projet object (and of all these objects dependent) in my Database like a
    typical functionality of "Save As"
    to be clear, with a comitChanges() i work on the original "Project"
    object. But how can i work on duplicate copies of this Project object and
    all its linked objects to save a duplicate "Project" in my DB in fact

    thank you for your help

    Cris Daniluk <cris.danilu..mail.com>
    11.11.05 18:32
    Please respond to
    cayenne-use..bjectstyle.org

    To
    cayenne-use..bjectstyle.org
    cc

    Subject
    Re: save As

    Just copy the cayenne.xml and other xml files (*Connection.xml and
    *Map.xml files) that Cayenne makes..

    Cayenne doesn't build this into the GUI because its not something you
    would normally do, but its still very easy to do on the filesystem
    directly.

    Note that because the master file is "cayenne.xml", it really isn't
    possible to have two totally separate projects in the same directory
    (it sort of is, but... not really)

    On 11/11/05, stefan.leidne..udor.lu <stefan.leidner@tudor.lu> wrote:
    >
    > hello,
    >
    > perhaps you will find my question very ridiculous but I am a new user
    of
    > Cayenne and I try to understand its mechanisms
    >
    > My question is as follows:
    > I defined a Cayenne DataContext which registers the whole of the objects
    of
    > my DB. No problem int the saving/loading of datas. it works fine.
    > But which would be the simplest way with Cayenne to be able to
    implements a
    > "Save As" fonctionnality (to make a duplication of my project in fact)
    >
    > thank you in advance
    >



    This archive was generated by hypermail 2.0.0 : Mon Nov 14 2005 - 05:31:58 EST