if you're creating new objects, i THINK it should just work with
errest ... if you're referencing existing ones, you have to provide
an implementation IERXRestDelegate that can resolve
objectOfEntityNameWIthID (where "entity name" is really "class name"
for non-EOs)
... in your ERXRouteController subclass:
/**
* Returns the default rest delegate for this controller (an
ERXRestRequestNode.EODelegate using the editing context
* returned from editingContext()). Override this method to provide a
custom delegate implementation for this
* controller.
*
* @return a default rest delegate
*/
protected IERXRestDelegate delegate() {
return new ERXEORestDelegate(editingContext());
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]