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 [EMAIL PROTECTED] > 0 or [EMAIL PROTECTED] > 0$>import com.webobjects.eocontrol.*;<$endif$><$if 'NSTimestamp' in classAttributes.javaValueClassName or [EMAIL PROTECTED] > 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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to