Re: How to migrate from Hibernate to Cayenne?

From: Mike Kienenberger (mkienen..mail.com)
Date: Wed Feb 20 2008 - 16:17:01 EST

  • Next message: Andrus Adamchik: "Re: How to migrate from Hibernate to Cayenne?"

    Cayenne does have the same capabilities. I generate DAOs, interfaces,
    web pages, config files, and, on occasion, entire applications (struts
    & jsf) from the Cayenne modeler using the cgen ant task. You can
    also do this from the Cayenne Modeler directly now.

    But...

    You will need to provide your own templates to do it.
    Cayenne does not provide such templates, except for POJOs.

    And it's in velocity, not freemarker, since you brought up your
    migration from one to the other.

    On Wed, Feb 20, 2008 at 4:05 PM, Thomas Bernhard <tbernhar..ahoo.com> wrote:
    >
    >
    > Scott A wrote:
    > >
    > > Take a look at the Cayenne Modeler; there is a feature to "Reengineer
    > > Database Schema" on the tools menu. You may be unable to do this with
    > > standard user-level permissions, depending on your database type and
    > > configuration. Then you'll be able to generate the POJOs which should
    > > resemble quite closely your hibernate POJOs.
    > >
    > I'm aware of CM and the reengineer feature, but unfortunately it does only a
    > small part of the work.
    >
    > When the Hibernate applciation was made, it was mostly "generated" with
    > Hibernate Synchronizer.
    > It has generated not only the POJOs but the DAOs and default queries for the
    > entire model too (and composite PKs too) - all these without tweaking
    > directly from the config files (generated form the DB with middlegen) with
    > just a few clicks.
    >
    > CM however doesn't seem to have these "advanced" generation features :(.
    > Is the default "way" in Cayenne to do these manually?
    >
    > Thank you,
    >
    > Tom.
    > --
    > View this message in context: http://www.nabble.com/How-to-migrate-from-Hibernate-to-Cayenne--tp15596160p15598178.html
    >
    >
    > Sent from the Cayenne - User mailing list archive at Nabble.com.
    >
    >



    This archive was generated by hypermail 2.0.0 : Wed Feb 20 2008 - 16:17:41 EST