• 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
Mysterious field not reachable from entity error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mysterious field not reachable from entity error


  • Subject: Mysterious field not reachable from entity error
  • From: "Matt Kime" <email@hidden>
  • Date: Sun, 3 Sep 2006 22:42:20 -0400

I have an object with the code below. When I try this search from a
WOComponent - EOQualifier.qualifierWithQualifierFormat("hasOpeningPlusZeroDays
= 'true'" ,null); I get the error below. I don't understand why I'm
getting this error. hasOpeningPlusZero days is clearly reachable.

Can anyone provide a better debug message? I really don't understand
why I'm getting this error.

thanks,
matt


---

java.lang.IllegalStateException: sqlStringForKeyValueQualifier:
attempt to generate SQL for
com.webobjects.eocontrol.EOKeyValueQualifier (hasOpeningPlusZeroDays =
'true') failed because attribute identified by key
'hasOpeningPlusZeroDays' was not reachable from entity 'State'

---

code from 'State' object

public NSArray galleriesActive() {
		EOQualifier qualifier =
EOQualifier.qualifierWithQualifierFormat("parentID = nil AND status =
1",null);
		NSMutableArray EOArray = EOQualifier.filteredArrayWithQualifier(
galleries(), qualifier).mutableClone();

		EOSortOrdering galleryOrdering =
EOSortOrdering.sortOrderingWithKey("name",
EOSortOrdering.CompareCaseInsensitiveAscending );
		NSArray sortArray = new NSArray(galleryOrdering);
		EOSortOrdering.sortArrayUsingKeyOrderArray(EOArray, sortArray);
		return EOArray;
   }

public NSArray galleriesWithOpeningPlusZeroDays(){
	EOQualifier qualifier =
EOQualifier.qualifierWithQualifierFormat("hasOpeningPlusZeroDays =
'true'",null);
	return EOQualifier.filteredArrayWithQualifier( galleriesActive(),
qualifier).mutableClone();
}

public boolean hasOpeningPlusZeroDays(){ return
(galleriesWithOpeningPlusZeroDays().count() > 0); }
_______________________________________________
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: Mysterious field not reachable from entity error
      • From: Lachlan Deck <email@hidden>
    • Re: Mysterious field not reachable from entity error
      • From: Art Isbell <email@hidden>
    • Re: Mysterious field not reachable from entity error
      • From: "Jerry W. Walker" <email@hidden>
  • Prev by Date: Cross EOModel relationships?
  • Next by Date: Re: WO in Java or Objective-C (Was Re: Is WebObjects 4.5 going open source?)
  • Previous by thread: Re: Cross EOModel relationships?
  • Next by thread: Re: Mysterious field not reachable from entity error
  • Index(es):
    • Date
    • Thread