Re: RequestFactory: Get entity ID on success of persist

2012-01-13 Thread Thomas Broyer
On Thursday, January 12, 2012 3:24:38 PM UTC+1, Tapomay Dey wrote: > > Hi, > I am using following code. > > Note: > request is of type ? extends RequestContext > entity is of type ? extends EntityProxy > > (request).persist().using(entity).fire( > new Receiver() { > @Override > public

Re: RequestFactory: Get entity ID on success of persist

2012-01-12 Thread Patrick Julien
in request is of type ? extends RequestContext add your own persist method that returns the newly created entity instead of void. The you receive it using Receiver instead of Receiver -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

RequestFactory: Get entity ID on success of persist

2012-01-12 Thread Tapomay Dey
Hi, I am using following code. Note: request is of type ? extends RequestContext entity is of type ? extends EntityProxy (request).persist().using(entity).fire( new Receiver() { @Override public void onSuccess(Void unUsed) { I need the entity ID generated in the DB here. If I do entit