• 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
Integer i in EOModel creates Long or Integer in EOGeneration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Integer i in EOModel creates Long or Integer in EOGeneration


  • Subject: Integer i in EOModel creates Long or Integer in EOGeneration
  • From: Johan Henselmans <email@hidden>
  • Date: Tue, 8 Apr 2008 17:54:26 +0200

I have two entities,
one with attribute showPublish,
one with attribute performancePublish

As you can imagine these are booleans, which I make up from an int4 in postgresql.
I checked the database, both fields are the same type integer.



So far so good. here are the plist descriptions of both: { columnName = "show_publish"; externalType = int4; name = showPublish; valueClassName = NSNumber; valueType = i; },

        {
            columnName = "perf_publish";
            externalType = int4;
            name = performancePublish;
            valueClassName = NSNumber;
            valueType = i;
        },

When I use EOGenerate to create a _Show class, and a _Performance class, this results in:

  public Long showPublish() {
    return (Long) storedValueForKey("showPublish");
  }

  public Integer performancePublish() {
    return (Integer) storedValueForKey("performancePublish");
  }


Can anybody explain to me why this is happening? Is there some magic involved that, before the EOModel gets written out, there is a check in the database of some kind that could cause this?


(WOLips)

Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159



_______________________________________________
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


  • Follow-Ups:
    • Re: Integer i in EOModel creates Long or Integer in EOGeneration
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: Google App Engine
  • Next by Date: Re: Integer i in EOModel creates Long or Integer in EOGeneration
  • Previous by thread: Re: Google App Engine
  • Next by thread: Re: Integer i in EOModel creates Long or Integer in EOGeneration
  • Index(es):
    • Date
    • Thread