• 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
Displaying Values Through Flattened Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying Values Through Flattened Relationships


  • Subject: Displaying Values Through Flattened Relationships
  • From: "Janice M. Cheung" <email@hidden>
  • Date: Tue, 03 Feb 2004 13:12:16 -0500

    Greetings!

    I have a question that may seem trivial, but one that is causing me
much distress.

    I've created several Booleans and Conditionals, to retrieve values
from the database matching their corresponding criteria.

    For example:

    public boolean isPublishExternal(){
       if ((revAff.contact().phoneNumber()!=null)  &&
(revAff.contact().publishExternal().equals("T")) &&
(revAff.contact().isPrimary().equals("T")))
           return ((revAff.contact().phoneNumberr().equals("")));
       else return true;
    }

    I have checked against the database, and many phone numbers
(phoneNumber) match the criteria as outlined above, but fail to appear in
    the application itself ...

    *UNLESS* the criteria exactly matches the very first record of
phoneNumber listed in the database (containing the smallest contact_pk
value).
    Only when the phoneNumber with the smallest contact_pk value
fulfills the criteria of the aforementioned 'true' values, will the
phone number
     be returned.  Otherwise, phoneNumber will not be returned at all.

    (There are different variations of phoneNumber in the database
(publishExternal, publishInternal, primary, department, phoneBook, etc.))

    Is there something that gets lost when I try retrieving values with
flattened (toMany) relationships in the EOModel?

    Any guidance and or advice to shift me in the right direction would
be greatly appreciated!

    Thank you!

    Janice
_______________________________________________
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: 
 >Strange Problem - too many Connections? (From: Christian Mittendorf <email@hidden>)
 >Re: Strange Problem - too many Connections? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Strange Problem - too many Connections?
  • Next by Date: Re: Strange Problem - too many Connections?
  • Previous by thread: Re: Strange Problem - too many Connections?
  • Next by thread: Weird EOF exception
  • Index(es):
    • Date
    • Thread