Re: EOGenerator 1.6 array support and in/notin operators
Re: EOGenerator 1.6 array support and in/notin operators
- Subject: Re: EOGenerator 1.6 array support and in/notin operators
- From: Christian Pekeler <email@hidden>
- Date: Fri, 21 Oct 2005 09:07:43 -0600
I've seen in the EOGenerator 1.6 release notes the following comments:
Updated with new MiscMerge:
...
Added ability to create arrays for use in places like foreach loops.
Added in and notin operators for conditional expressions to check if
something is in an array.
I would like to use these new features, but there is no example and I
can't get it to work:
<$if className in ('"NSData", "NSTimestamp")$>...
This expression is accepted by EOGenerator, but it doesn't evaluate to
"true" when "className" variable is "NSData" or "NSTimestamp". Is
there someone that knows how to define an array and how to use it with
the new "in" and "notin" operators?
I don't know how to define an array. But I've recently extended my
template to only import required packages using the 'in' operator.
Sounds like you might be trying to accomplish the same.
<$if classAttributes.@count > 0 or classToOneRelationships.@count >
0$>import com.webobjects.eocontrol.*;<$endif$><$if 'NSTimestamp' in
classAttributes.javaValueClassName or classToManyRelationships.@count >
0$>
import com.webobjects.foundation.*;<$endif$><$if 'BigDecimal' in
classAttributes.javaValueClassName$>
import java.math.*;<$endif$>
Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden