• 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
Re: ERRest - RestDelegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERRest - RestDelegate


  • Subject: Re: ERRest - RestDelegate
  • From: Pascal Robert <email@hidden>
  • Date: Mon, 05 Mar 2012 12:07:25 -0500

Le 2012-03-05 à 11:33, Ron X a écrit :

> hi,
> i have this code:
> @Override
>     public Note objectOfEntityWithID(EOClassDescription entity, Object id, ERXRestContext context)    {
> ....
> Note - is the entity.
> When i go there - in this method - i have the right id and entity...But how can i get the object (Note) from it? Just simple get the object :-)
> (I don't want to refetch objects again from ERXQ.filtered and other like it had shown in example)

  public Object objectOfEntityWithID(EOClassDescription entity, Object id, ERXRestContext context) {
    return OrganizationProfile.fetchOrganizationProfile(ERXEC.newEditingContext(), OrganizationProfile.COMPANY_NAME.eq((String)id);
  }
 _______________________________________________
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: ERRest - RestDelegate
      • From: Jesse Tayler <email@hidden>
References: 
 >ERRest - RestDelegate (From: Ron X <email@hidden>)

  • Prev by Date: Re: Opinions on OpenJDK
  • Next by Date: Re: ERRest - RestDelegate
  • Previous by thread: ERRest - RestDelegate
  • Next by thread: Re: ERRest - RestDelegate
  • Index(es):
    • Date
    • Thread