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