Thursday, September 27, 2012

Re: for new object, stableId() not the same before/after persist



On Thursday, September 27, 2012 9:20:55 PM UTC+2, RickL wrote:
Yan,


The important part is: "The one exception to the global scope of an EntityProxyId is the id of a newly-created EntityProxy that has not yet been persisted on the server. An "ephemeral" id is only usable with the RequestFactory from which the newly-created proxy object is derived. Once the proxy has been sent to the server and the server has provided a non-null id, the ephemeral id is upgraded to a persistent id and becomes indistinguishable from any other persistent id."

I believe that means it is working as designed. 

Given that we're talking about BobV here (author of RequestFactory), I'd tend to agree (and knowing the internals of the EntityProxyId, I was really perplex at how to make it work as described in the Javadoc).
The Javadoc is then absolutely wrong though, as it explicitly says the contrary!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/MP8jEUiyzmsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment