• 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: WODisplayGroup repeats the same EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WODisplayGroup repeats the same EO


  • Subject: Re: WODisplayGroup repeats the same EO
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 02 Sep 2011 18:29:04 -0700

I don't quite get what was happening.  Every EO was getting the same GID?


On 2011-09-02, at 12:35 AM, David Avendasora wrote:

> Hi all,
>
> This is one for posterity. AKA: When I'm an idiot in the future.
>
> I was having a problem with a WODisplayGroup that would have the right number of objects in the selectedObjects Array, but they were all instances of the same EO.
>
> Easy, you say; there's something wrong with the item setter on the WORepetition. Not so fast. It the setter was fine. The SQL that was being used to fetch the data was right too.
>
> The model was wrong. The PK in the FrontBase DB was a LONGINT, but the PK in the EOModel had an external type of INT. The value stored in the DB field was not too long for an INT and an ALTER TABLE statement changed it without issue. Apparently there something about the process in the JDBC driver or EOF that chokes on it turning a Long into an Integer, but not enough to throw an exception, but enough to make all the values the same, in a non-deterministic way. If I quit and relaunched the app, it would likely repeat a different instance, but not always.
>
> Dave _______________________________________________
> 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

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
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: WODisplayGroup repeats the same EO
      • From: David Avendasora <email@hidden>
References: 
 >WODisplayGroup repeats the same EO (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Problem with wolips.properties file on Windows
  • Next by Date: Re: WODisplayGroup repeats the same EO
  • Previous by thread: Re: WODisplayGroup repeats the same EO
  • Next by thread: Re: WODisplayGroup repeats the same EO
  • Index(es):
    • Date
    • Thread