Re: Using EntityProxyId in a service call
On Thursday, June 21, 2012 1:20:28 AM UTC+2, Rob Whiteside wrote:
I am using RequestFactory to fetch data from the server and have came across a situation that I can't find an answer to:On the client I have an EntityProxyId for a proxy that I want to fetch. Normally, I'd just do a "find" and off it goes to the server. Then, my Locator's "find" gets called, but now this EntityProxyId is actually the ID that I can use to grab it from the database.But, in this particular case, I'm interested in finding a particular revision of that entity. So, I'd like to include a date or timestamp in that "find" call (at this point, i'd be able to query the db to grab the correct revision of said entity). I can't quite figure out how to do this... Is there a way that I can create a new service call that will still do that magic translation of the EntityProxyID into the actual database Id? That way, I can still include that extra timestamp.
If you can, replace EntityProxyId with the ID of the entity (Long or String or whatever), that's the simplest and IMO cleanest way of doing what you want.
The only alternative is to help finish http://code.google.com/p/google-web-toolkit/issues/detail?id=5525 by providing a patch (looks like the only missing part is support in the GWT generator)
-- 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/-/hqcWrAc4bEUJ.
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