Re: Creating Cayenne objects from DTO annotations

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri May 14 2010 - 10:48:07 UTC

  • Next message: Joe Baldwin: "Re: Cayenne Connection Pool Monitoring - to solve "out of connections" error"

    Are you planning to generate DataMap from DTO's as well? Or do you
    have it already?

    If you do, DataMap XML can be passed to Ant or Maven to generate
    classes:

    http://cayenne.apache.org/doc30/ant-tasks.html
    http://cayenne.apache.org/doc30/maven2-plugins.html

    Andrus

    On May 14, 2010, at 12:25 PM, Sudheer wrote:
    > Hi,
    >
    > Is there a way to create Cayenne objects, which are usually created by
    > Modeler, from existing DTOs (Data Transfer Objects) that are having
    > annotations? Any third-party api for this?
    >
    > To reduce dev effort and retain consistency in our project, we are
    > looking
    > for ways to automate creation of cayenne objects from DTOs.
    >
    > Thank you,
    > Sudheer
    > --
    > View this message in context: http://cayenne.195.n3.nabble.com/Creating-Cayenne-objects-from-DTO-annotations-tp816904p816904.html
    > Sent from the Cayenne - User mailing list archive at Nabble.com.
    >



    This archive was generated by hypermail 2.0.0 : Fri May 14 2010 - 10:48:42 UTC