Re: EOModeler and boolean
Re: EOModeler and boolean
- Subject: Re: EOModeler and boolean
- From: Kieran Kelleher <email@hidden>
- Date: Mon, 23 Apr 2007 23:09:25 -0400
EOGenerator .... could not live without it. Yes, this little
eogenerator hack, sorry I mean casting, is needed to make the int
work for a boolean ;-) ..... so a newcomer to WO who has still not
reached the stage of realizing that fulfilling iterative development
life is not possible without eogenerator is still better off using
the char(5) .... aw, come on, admit it :-p
Cheers and goodnight, Kieran ;-)
On Apr 23, 2007, at 10:27 PM, Lachlan Deck wrote:
Sure. I forgot to add that in my EOGenerator template (if you're
using EOGenerator... sudo port install eogenerator) I've adjusted
the JavaSourceEOF52.eotemplate.
<....>
<$foreach Attribute classAttributes.@sortedNameArray do
$>
<$if Attribute.javaValueClassName eq 'Number' &&
Attribute.valueType eq 'c'$>
public Boolean <$Attribute.name$>() {
return ( Boolean )storedValueForKey( <
$Attribute.name.initialCapitalString$>Key );
}
public void set<$Attribute.name.initialCapitalString$>( Boolean
aValue ) {
takeStoredValueForKey( aValue, <
$Attribute.name.initialCapitalString$>Key );
}
<$ else $>
// normal definition
<$endif$><$endforeach do
$>
<....>
_______________________________________________
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