Cool! Thanks. (I'll add it to the wiki)
Dave
On Jan 25, 2008, at 10:30 AM, Oswaldo Bueno wrote:
> David,
> This is what I migrated from JavaEOGenerator:
>
> #foreach ($fetchSpecification in $entity.sortedFetchSpecs)
> #if (true || $fetchSpecification.distinctBindings.size() > 0)
> public static NSArray<${entity.className}> fs$
> {fetchSpecification.capitalizedName}(EOEditingContext context,
> NSDictionary<String, Object> bindings) {
> EOFetchSpecification spec =
> EOFetchSpecification.fetchSpecificationNamed("$
> {fetchSpecification.name}", "${entity.name}");
> spec = spec.fetchSpecificationWithQualifierBindings(bindings);
> return context.objectsWithFetchSpecification(spec);
> }
>
> #end
> public static NSArray<${entity.className}> fs$
> {fetchSpecification.capitalizedName}(EOEditingContext
> context#foreach ($binding in $fetchSpecification.distinctBindings),
> ${binding.attributePath.childClassName} ${binding.name}Binding#end)
> {
> EOFetchSpecification spec =
> EOFetchSpecification.fetchSpecificationNamed("$
> {fetchSpecification.name}", "${entity.name}");
> #if ($fetchSpecification.distinctBindings.size() > 0)
> NSMutableDictionary bindings = new NSMutableDictionary();
> #foreach ($binding in $fetchSpecification.distinctBindings)
> bindings.takeValueForKey(${binding.name}Binding, "$
> {binding.name}");
> #end
> spec = spec.fetchSpecificationWithQualifierBindings(bindings);
> #end
> return context.objectsWithFetchSpecification(spec);
> }
>
> #end
>
>
>
> On Jan 25, 2008 1:11 PM, David Avendasora
> <webobject..vendasora.com> wrote:
> > http://wiki.objectstyle.org/confluence/display/WOL/*EOGenerator
> > +Templates
> >
> >
> > On Jan 25, 2008, at 10:03 AM, David Avendasora wrote:
> >
> > > Would it be possible to have these templates available on the Wiki
> > > (http://wiki.objectstyle.org/confluence/display/WOL/*EOGenerator
> > > +Templates)?
> > >
> > > I could really use the fetch functionality that you've been
> > > discussing.
> > >
> > > Thanks,
> > >
> > > Dave
> --
> ----------------------------------------------------------------------
> -------------------
> Oswaldo V. C. Bueno - http://bueno.carpintaria.com
> Carpintaria do Software - http://www.carpintaria.com
>
>
This archive was generated by hypermail 2.0.0 : Fri Jan 25 2008 - 10:36:07 EST