EntityProxyChange.registerForProxyType(...) can be used to get the ID
of the persisted object.
The receiver's
EntityProxyChange.Handler<PersonProxy>.onProxyChange(EntityProxyChange<PersonProxy>
event) will be called.
event.getWriteOperation() should return PERSIST
event.getProxyId() should return the stable id of the proxy.
This should help with a restful navigation after a successful persist.
This might be better logged as a feature request, but I wanted to
check that I hadn't missed something first.
Given something like this:
PersonProxy person = context.create(PersonProxy.class);
person.setName(name);
context.persist().using(person).fire(..... etc.
In the call to:
onSuccess
person.getId() == null
Even though of course the persistence layer assigned it an ID.
Seems like it would be pretty useful to have GWT RF not necessarily
transmit every person property back to the client after a successful
persist, but certainly getting the ID back to the client would be
useful. For example, after the successful persist, let's say I want
to restfully navigate to a PersonPlace and use the person's new ID
(assigned by persistence layer) in the token?