Re: RequestFactory / When is Entity.findEntity used?
Glad to hear that I am not the only one ;) Sounds logical once you know the internal behaviour of RF, maybe an extra warning would save first-timers a lot of headache? Greets Jerome -- 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.
Re: RequestFactory / When is Entity.findEntity used?
Well... Not :( I corrected that and it works now.. thank you On Wed, Apr 6, 2011 at 6:22 PM, Thomas Broyer wrote: > Are you sure all EntityProxy interfaces that indicate the entity in the > @ProxyFor or @ProxyForName annotation also have the locator= value in that > annotation too? > > -- > 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. > -- 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 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.
Re: RequestFactory / When is Entity.findEntity used?
Are you sure all EntityProxy interfaces that indicate the entity in the @ProxyFor or @ProxyForName annotation also have the locator= value in that annotation too? -- 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.
Re: RequestFactory / When is Entity.findEntity used?
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 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 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. > -- 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 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.
Re: RequestFactory / When is Entity.findEntity used?
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.