• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOModeler and boolean
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >EOModeler and boolean (From: WIESEN Bruno <email@hidden>)
 >Re: EOModeler and boolean (From: Kieran Kelleher <email@hidden>)
 >Re: EOModeler and boolean (From: Lachlan Deck <email@hidden>)
 >Re: EOModeler and boolean (From: Kieran Kelleher <email@hidden>)
 >Re: EOModeler and boolean (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: EOModeler and boolean
  • Next by Date: Fwd: EOModeler and boolean
  • Previous by thread: Re: EOModeler and boolean
  • Next by thread: Fwd: EOModeler and boolean
  • Index(es):
    • Date
    • Thread