• 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: Internal Data Type for BOOL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internal Data Type for BOOL


  • Subject: Re: Internal Data Type for BOOL
  • From: Rob Myers <email@hidden>
  • Date: Tue, 3 Jun 2003 21:37:30 +0100

I spent today struggling with this.

Use 'Integer'. In EOModeler make sure its data type is set to 'c' rather than 'i' or anything else. Then swizzle the generated classes to have the accessors take and return Boolean.

- Rob.


On Tuesday, June 3, 2003, at 06:11 PM, Alex Eagar wrote:

I'm designing a new database for a WebObjects application. In EOModeler I have an attribute called "gender" with an External Type as "BOOL" (using MySQL). What is the best Internal Data Type or in other words, what's the best Value Class to use? Can I simply use a Java "boolean"?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Internal Data Type for BOOL (From: Alex Eagar <email@hidden>)

  • Prev by Date: Re: Encryption Code Problem
  • Next by Date: Re: Encryption Code Problem
  • Previous by thread: Re: Internal Data Type for BOOL
  • Next by thread: Re: Internal Data Type for BOOL
  • Index(es):
    • Date
    • Thread