• 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: "bit" as External Data Type in EO modeling SQL Server
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "bit" as External Data Type in EO modeling SQL Server


  • Subject: Re: "bit" as External Data Type in EO modeling SQL Server
  • From: WebObjects <email@hidden>
  • Date: Thu, 19 May 2005 06:55:17 -0700

Thanks Sako,

I didn't find it in the docs (the 1st place I always look), but after some
trial and error I set it to NSString and it seems to work perfectly.

In your experience what is the better solution?  And besides the obvious
differences between boolean and String, are their any side effects to using
one over the other?

-Bill


on 5/19/05 02:17, email@hidden at email@hidden wrote:

> Hi WebObjects :)
>
> This is a boolean .
> you usually cast it into Boolean.
>
> But you should be sure you set the value in the Model is 'c'.
> For more inforamtion about that check the EOModeler documentation under
> c:/apple/documenation.....
> peaSe,
>
> Sako.
>
> ----- Original Message -----
> From: "WebObjects" <email@hidden>
> To: <email@hidden>
> Sent: Thursday, May 19, 2005 12:35 AM
> Subject: "bit" as External Data Type in EO modeling SQL Server
>
>> I was encountering problems in my initial design with
>> "java.lang.ClassCastException" related to a weird data type in the SQL
>> Server database I was modeling.  I was able to do without these fields so
> I
>> used the little diamond in EOModeler to simply exclude it.  Now I need
>> access to that field.
>>
>> When I put it in my model EOModeler picks an Internal type of "NSNumber"
> and
>> external type  of "bit".  This causes java.lang.ClassCastException and the
>> stack points to the line in the EO's class file that represents this
>> troublesome attribute: "...at
>> Tbltasks.taskcompletedindicator(Tbltasks.java:308)"
>>
>> Has anyone worked with a "bit" as a data type? (and gotten it to map to a
>> correct Java data type)
>>
>> Thanks as always,
>>
>> -Bill Reynolds
>>
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
> de
>>
>> This email sent to email@hidden
>>
>>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.concyse.com/
> ______________________________________________________________________


 _______________________________________________
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

  • Prev by Date: Re: using Application.java
  • Next by Date: File Management Program
  • Previous by thread: "bit" as External Data Type in EO modeling SQL Server
  • Next by thread: using Application.java
  • Index(es):
    • Date
    • Thread