moving to VelocityGenerator from JavaEOGenerator

From: Oswaldo Bueno (bueno.de..mail.com)
Date: Tue Jan 22 2008 - 14:22:52 EST

  • Next message: David LeBer: "Re: moving to VelocityGenerator from JavaEOGenerator"

    Hi,
       I'm moving my eo templates to veogen.

       I'm unable to find a way to get an array of binds of a fetchspecification.

       My JavaEOGenerator template was:

    <wo:WORepetition list="[entity.classFetchSpecifications]"
    item="[fetchSpecification]">
        public static NSArray&lt;<wo:WOString
    value="[entity.className]"/>&gt; objectsFor<wo:WOString
    value="[fetchSpecification.initialCapitalName]"/>(com.webobjects.eocontrol.EOEditingContext
    context<wo:WORepetition list="[fetchSpecification.bindings]"
    item="[binding]">, <wo:WOString value="[binding.valueTypeClassName]"/>
    <wo:WOString value="[binding.name]"/>Binding</wo:WORepetition>) {

       My Veogen template:

       #foreach ($fetchSpecification in $entity.sortedFetchSpecs)
            public static NSArray<${entity.className}>
    fs${fetchSpecification.capitalizedName}(
                    com.webobjects.eocontrol.EOEditingContext context#foreach ($binding
    in $fetchSpecification.bindings),
                    ${binding.valueTypeClassName} ${binding.name}Binding#end) {
                    

       Is there a solution to this?

    Thanks,
       Bueno

    -- 
    -----------------------------------------------------------------------------------------
    Oswaldo V. C. Bueno - http://bueno.carpintaria.com
    Carpintaria do Software - http://www.carpintaria.com
    



    This archive was generated by hypermail 2.0.0 : Tue Jan 22 2008 - 14:23:55 EST