On 22-Jan-08, at 2:22 PM, Oswaldo Bueno wrote:
> 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<<wo:WOString
> value="[entity.className]"/>> 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?
I believe there is an open bug for this feature: <http://issues.objectstyle.org/jira/browse/WOL-677
>
You might want vote for it unless anyone can offer a different way of
obtaining similar results.
;david
-- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org
This archive was generated by hypermail 2.0.0 : Tue Jan 22 2008 - 14:43:31 EST