Re: Help - Relationships, Bindings, w/Full Text Search
Re: Help - Relationships, Bindings, w/Full Text Search
- Subject: Re: Help - Relationships, Bindings, w/Full Text Search
- From: Drew Thoeni <email@hidden>
- Date: Wed, 27 Sep 2006 23:02:34 -0400
Yep. That does it. I missed that in the docs. Was looking at
objectFromRawRow.
Works like advertised. Thanks Paul and Chuck.
Drew
On Sep 27, 2006, at 10:29 AM, Paul Lynch wrote:
On 27 Sep 2006, at 14:29, Drew Thoeni wrote:
I implemented objectFromRawRow and am baffled by this exception:
java.lang.IllegalArgumentException: Raw row {REPORT_ENTRY_ID =
130; } does not contain primary key information for entity
ReportEntry
However, the NSDictionary returned from rawRowsForSQL is correct;
there is one row and it's primary key is REPORT_ENTRY_ID = 130.
So, I'm curious why, if the row is returned, the dictionary is
correct, the key is identified, and the value for the key is
correct, the objectFromRawRow would be throwing the exception.
NSArray result = EOUtilities.rawRowsForSQL( ec, "segment_report",
sqlString, null);
Try running with the keys value set; probably to new NSArray
("REPORT_ENTRY_ID"). You should check what is generated as the key
in the raw row dictionary given to you - I have seen cases where
the key names aren't exactly what you would expect.
Paul
_______________________________________________
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
References: | |
| >Help - Relationships, Bindings, w/Full Text Search (From: Drew Thoeni <email@hidden>) |
| >Re: Help - Relationships, Bindings, w/Full Text Search (From: Chuck Hill <email@hidden>) |
| >Re: Help - Relationships, Bindings, w/Full Text Search (From: Drew Thoeni <email@hidden>) |
| >Re: Help - Relationships, Bindings, w/Full Text Search (From: Chuck Hill <email@hidden>) |
| >Re: Help - Relationships, Bindings, w/Full Text Search (From: Drew Thoeni <email@hidden>) |
| >Re: Help - Relationships, Bindings, w/Full Text Search (From: Paul Lynch <email@hidden>) |