On Wednesday, April 6, 2011 3:57:31 PM UTC+2, Magno Machado wrote: > > Every entity on request factory must provide a static EntityName > findEntityName(Long id) method, is that correct?
Yes (provided your entity's ID is of type Long), unless you use a Locator. If I use a locator, the locator already has a find() method. Doesn't they > have the same purpose? Do I really need both? > The goal of the Locator is to replace the constraints imposed on the entity, namely: getId, getVersion and static findXxx method. If you use a Locator, you no longer have to provide those methods on your entity class, RequestFactory will ask the Locator *instead*. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.