Re: Object migrates between DataDomains

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Apr 10 2006 - 04:54:01 EDT

  • Next message: Andrus Adamchik: "Re: Seeking to automate generation the cayenne schema"

    On Apr 10, 2006, at 11:48 AM, emre.yilma..tr.com.tr wrote:

    > Hi,
    >
    > Is there a easy way to migrate created objects from one DataDomain
    > to other DataDomain.
    >
    > Thank you...

    Technically DataObject belongs to a DataContext, so we should be
    speaking about moving objects between DataContexts (that in turn can
    belong to different DataDomains). This is done with
    DataContext.localObject(..)

    http://objectstyle.org/confluence/display/CAYDOC/Moving+Objects
    +Between+Contexts

    Of course object mappings have to be compatible in both domains
    involved.

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Apr 10 2006 - 04:54:33 EDT