Re: Cayenne vs JPA tools

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Feb 26 2007 - 08:30:09 EST

  • Next message: Ahmed Mohombe: "Re: Cayenne 1.2.2 with Modeler Descriptions"

    On Feb 25, 2007, at 5:53 PM, Dov Rosenberg wrote:

    > We are already going thru a lot of changes to migrate from EOF to
    > Cayenne -
    > I really don't want to have to radically rebuild our app again when
    > Cayenne
    > JPA rolls around.

    The plan is for Cayenne Classic and Cayenne JPA to coexist:

    * They are built on the common runtime, and any new features that are
    in the JPA spec, but not currently in Cayenne (e.g. Embeddables, or
    EJBQL) are being rolled into Cayenne Classic.
    * There are no plans to deprecate Cayenne Classic API
    * The plan is to allow current Cayenne Query API to be available
    behind the facade of the JPA named queries.
    * There is an interface that allows access to Cayenne stack internals
    through the JPA facade.

    So...

    If you want a 'portable' application to be able to switch providers,
    none of the above matters much (and of course importing anything from
    'org.apache.cayenne' would be harmful if the portability is a goal),
    and you should take a dive and follow Mike's advice, switching
    everything to vanilla JPA code.

    If you decide to continue using Cayenne Classic API, you'll be able
    to do that for the foreseeable future. At the moment I don't see why
    we would force JPA migration on our users. We simply open this
    possibility for them.

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Feb 26 2007 - 08:30:54 EST