Re: How to debug fetch problem
Re: How to debug fetch problem
- Subject: Re: How to debug fetch problem
- From: Chuck Hill <email@hidden>
- Date: Tue, 10 Apr 2007 13:57:59 -0700
On Apr 10, 2007, at 1:51 PM, Janine Sisk wrote:
On Apr 10, 2007, at 1:34 PM, Chuck Hill wrote:
Tread carefully, Grasshopper. Sometimes the answer does not
present itself as such.
Yes, master. :)
What is the binding for data? I recall it was something like
aPanel.images.thumbnailImage
aPanel.images.thumbnail - close enough.
Image: WOImage {
data = aPanel.images.thumbnailImage;
mimeType = "image/jpeg";
foo = aPanel;
bar = aPanel.images;
WODebug = true;
}
[2007-04-10 13:43:35 PDT] <WorkerThread0> [Thumbnail:WOImage] foo
<== (com.webobjects.appserver._private.WOKeyValueAssociation:
{values = {title = "Testing"; images = "null"; last_modified_date =
2007-04-09 23:19:55 Etc/GMT; description = "Test 123";
creation_date = 2007-04-09 23:19:55 Etc/GMT; }; this =
"<com.furfly.eo.Panel d23e75 _EOIntegralKeyGlobalID[Panel
(java.lang.Integer)1000018]>"; })
[2007-04-10 13:43:35 PDT] <WorkerThread0> [Thumbnail:WOImage] bar
<== (com.webobjects.appserver._private.WOKeyValueAssociation: null)
[2007-04-10 13:43:35 PDT] <WorkerThread0> [Thumbnail:WOImage] data
<== (com.webobjects.appserver._private.WOKeyValueAssociation: null)
[2007-04-10 13:43:35 PDT] <WorkerThread0> [Thumbnail:WOImage]
mimeType <== (class java.lang.String: "image/jpeg")
Ok, so it's the images part that's null. That's the to-one
relationship to PanelImages. I thought maybe I needed to do
something to get the fetch spec to include it, but I can't find
anything that looks relevant.
Did you check your model for mistakes? :-)
Use null for an empty qualifier.
That was the first thing I tried:
EOFetchSpecification fs = EOFetchSpecification("Panel", null, null);
but it gave me
The method EOFetchSpecification(String, null, null) is undefined
for the type Display
That is true, too. New, Janine. You have to say new. Java likes
its verbiage:
EOFetchSpecification fs = new EOFetchSpecification("Panel", null, null);
If there is no new, it is a method call and not object creation.
Chuck
(Display is the name of this component)
So I was trying to create an empty EOQualifier, but that wasn't
working either.
thanks,
janine
--
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