If i create a proxy object on the client side and persist it, shouldn't my proxy object after it is persisted on the server side be automatically updated with the generated id?
For example this code prints out "null".
final MyRequestFactory requestFactory = clientFactory.getRequestFactory();
final TestRequest request = requestFactory.testRequest();
final TestProxy myTestObj = request.create(TestProxy.class);
Request<Void> createReq = request.persist.using(myTestObj);
createReq.fire(new Receiver<Void>() {
@Override
public void onSuccess(Void nothing) {
System.out.println(myTestObj.getId());
}
});
Or do i have to change my code so that the persist method returns my object again?