I'm using a locator, but I still have to have a findXXX method on my entity... If not, I receive an error saying that my entity doesn't provide an static findXXX method
On Wed, Apr 6, 2011 at 11:52 AM, Thomas Broyer <[email protected]> wrote: > > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
