Re: Seeking to automate generation the cayenne schema

From: Cris Daniluk (cris.danilu..mail.com)
Date: Tue Apr 04 2006 - 10:01:40 EDT

  • Next message: WONDER: "[solved] Re: Cayenne.xml not found."

    I wonder if pointing the XMLEncoder to the DataDomain object graph would
    have the same effect :)

    On 4/4/06, Mike Kienenberger <mkienen..mail.com> wrote:
    >
    > On 4/4/06, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > > Everything in Cayenne can be assembled via API. So you'd go about
    > > assembling Cayenne stack in the following order:
    > >
    > > * create DefaultConfiguration
    > > * add DataDomain
    > > * add DataNode
    > > * add DataMap (using org.objectstyle.cayenne.access.DbLoader to
    > > create it from DB on the fly)
    > >
    > > Also since a generic DataObject class is supported, this will even
    > > work in Java:
    > >
    > > http://objectstyle.org/confluence/display/CAYDOC/Generic+Persistent
    > > +Class
    >
    > Andrus, I think he's asking about how to create the xml config files.
    > So he'd need to do everything above, and then call some kind of xml
    > writer (probably a class in modeler.jar) to save it all back out as
    > xml. He'd probably also want to do the "sync to ObjEntity" stuff as
    > well to create the ObjEntities.
    >
    > Craig, I don't know how "straightforward" it would be, but the modeler
    > project should contain everything you need. You'd just call the java
    > "work" methods directly instead of going through the swing callbacks.
    >



    This archive was generated by hypermail 2.0.0 : Tue Apr 04 2006 - 10:02:04 EDT