Thursday, October 6, 2011

GWT RequestFactory with GAE, may cause conflict when fetch object using locator?

Hi all:

From the requestFactory locator class, there is an abstract method:
  public abstract T find(Class<? extends T> clazz, I id);

This is to retrieve an unique object with Class clazz and its id, however i notice in app engine with the class and its ID are not enough to identify one unique object, because in GAE(I use Objectify) only id+Class+parent could identify one object, in other word, there may exist one object with same ID and same Class but different Parent in GAE datastore, in this situation, it may fetch the wrong object.

Any ideas?
Thanks.



--
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/-/cTM7R65vcsoJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate