ERRest without EO
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