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      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Reply via email to