Re: svn commit: r911476 - /cayenne/main/trunk/framework/cayenne-tools/src/main/resources/templates/v1_2/client-datamap-superclass.vm

From: Mike Kienenberger (mkienen..mail.com)
Date: Thu Feb 18 2010 - 17:44:59 EST

  • Next message: Aristedes Maniatis: "Re: svn commit: r911476 - /cayenne/main/trunk/framework/cayenne-tools/src/main/resources/templates/v1_2/client-datamap-superclass.vm"

    v1.2 is the cgen version. It's fine and doesn't need to be changed.
    We would only change that version if we did further work on the cgen
    engine.

    You're definitely going to be wanting to add something in the upgrade guide.

    Even if end-users don't have to change their cayenne cgen templates,
    they may have other velocity templates that need to be changed.

    For instance, my Cayenne project in maintenance uses velocity for
    custom Cayenne templates, email templates, and web page templates.
    Upgrading velocity would force upgrading everything else. I think
    3.1 is a fine place to force an upgrade.

    On Thu, Feb 18, 2010 at 5:33 PM, Aristedes Maniatis <ar..aniatis.org> wrote:
    > We'll probably need something in the upgrade guide for 3.1 for this one.
    > Many people will have copies of the templates inside their own project that
    > will need modifying.
    >
    > Also, remind me again, why are these templates marked as v1.2? Should we get
    > rid of that versioning?
    >
    > Ari
    >
    >
    > On 19/02/10 3:32 AM, andre..pache.org wrote:
    >>
    >> Author: andrey
    >> Date: Thu Feb 18 16:32:52 2010
    >> New Revision: 911476
    >>
    >> URL: http://svn.apache.org/viewvc?rev=911476&view=rev
    >> Log:
    >> CAY-1393 Update velocity to 1.6.3. Fixing templates
    >>
    >> Modified:
    >>
    >> cayenne/main/trunk/framework/cayenne-tools/src/main/resources/templates/v1_2/client-datamap-superclass.vm
    >>
    >> Modified:
    >> cayenne/main/trunk/framework/cayenne-tools/src/main/resources/templates/v1_2/client-datamap-superclass.vm
    >> URL:
    >> http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-tools/src/main/resources/templates/v1_2/client-datamap-superclass.vm?rev=911476&r1=911475&r2=911476&view=diff
    >>
    >> ==============================================================================
    >> ---
    >> cayenne/main/trunk/framework/cayenne-tools/src/main/resources/templates/v1_2/client-datamap-superclass.vm
    >> (original)
    >> +++
    >> cayenne/main/trunk/framework/cayenne-tools/src/main/resources/templates/v1_2/client-datamap-superclass.vm
    >> Thu Feb 18 16:32:52 2010
    >>.. -32,8 +32,8 @@
    >>  ##    basePackageName
    >>  ##
    >>  ${importUtils.setPackage($superPackageName)}##
    >> -${importUtils.addReservedType("${superPackageName}.${superClassName}")}##
    >> -${importUtils.addType("${basePackageName}.${baseClassName}")}##
    >>
    >> +#if(${superPackageName})${importUtils.addReservedType("${superPackageName}.${superClassName}")}#end##
    >>
    >> +#if(${basePackageName})${importUtils.addType("${basePackageName}.${baseClassName}")}#end##
    >>  #if( ${object.hasSelectQueries()} )
    >>  ${importUtils.addType('java.util.List')}##
    >>  ${importUtils.addType('org.apache.cayenne.ObjectContext')}##
    >>
    >>
    >
    > --
    > -------------------------->
    > Aristedes Maniatis
    > GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
    >



    This archive was generated by hypermail 2.0.0 : Thu Feb 18 2010 - 17:45:51 EST