• 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
ERRest without EO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERRest without EO


  • Subject: ERRest without EO
  • From: AndrĂ© Rothe <email@hidden>
  • Date: Mon, 04 Feb 2019 13:22:24 +0100

Hi,

I have built a simple project, with ERRest. I don't use a database backend at the moment. The data manages a datastore (Singleton with a List<?>). As I understand, ERRest can be used also without EO, so I have set a Delegator class. The Delegator's primaryKeyForObject() will be called by the framework. But the ERXRestRequestNode only contains the Id of the object and not the other member fields.

I looked into the code and I found ERXRestRequestNode._addAttributesAndRelationshipsForObjectOfEntity() which is called for my object. As attributeKeys() of the classDescription is only the Id available, the other member fields (which are primitive "int") are set as toOneRelationshipKeys(). I have also a ToManyRelationship (List<?>) within my object, which seems to be correct.

Is it right, that my member fields are classified as relationship? Should I define something in my POJO to define them as attributes?

Thank you
André
_______________________________________________
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

  • Prev by Date: Re: did I do something terrible???
  • Next by Date: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5
  • Previous by thread: Re: did I do something terrible???
  • Next by thread: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5
  • Index(es):
    • Date
    • Thread