Re: Return single row?
Re: Return single row?
- Subject: Re: Return single row?
- From: David Elsner <email@hidden>
- Date: Thu, 4 Dec 2003 14:13:57 +1100
Try using
MyObject temp = (MyObject) EOUtilities.objectMatchingKeyAndValue(ec,
"EntityName","attribute", new Integer(0));
Just make sure there is only one object returned from the DB otherwise
an exception will occur.
Dave
On Thursday, December 4, 2003, at 12:56 PM, Drew Thoeni wrote:
> A newbie question:
>
> I have been through several of the tutorials/books recommended by the
> list (thanks for the tips) and have not found an example of using a
> fetchSpec to return a single row *and* then put that returned row into
> an object that can be tied to WOString fields (or other fields) for
> display.
>
> I am able to return lists and place them into a WORepetition and the
> data displays nicely. It's a single row I'm having difficulty with.
>
> Can someone point to an example of this?
>
> Regards,
>
> Drew
> _______________________________________________
> 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.
_______________________________________________
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.