I had a look through the code. com.google.gwt.requestfactory.server.RequestFactoryInterfaceValidator has a (rather unfortunately named) method called checkIdAndVersion(ErrorContext logger, Type domainType) in line 1001. However, this method also checks for a find method. Is this a bug?
In other words, is the find method used internally or can we ignore it? /Henrik On Dec 19, 8:22 pm, Henrik Schmidt <[email protected]> wrote: > Hi there, > > I'm playing with the new 2.1.1 release. I'm trying to use DAOs instead > of DTOs and testing it through RequestFactoryMagic. I use Guice server > side to inject the DAOs and I've implemented a ServiceLocator to hook > into Guice and get the given instance. This seems to work well. > > Here's the problem. I have a domain class called Section which is a > simple JDO persistent class. This class has the required getId and > getVersion method. However, GWT blows up because there is no static > findSection(String id) method. I get the following errors: > > SEVERE: There is no findSection method in type > cwp.handin3.server.model.Section that returns > cwp.handin3.server.model.Section > ... > SEVERE: The type cwp.handin3.shared.SectionProxy did not pass > RequestFactory validation > > I could of course create one but that defeats the purpose of the DAO. > Do I need to extend the Locator interface and hook that into Guice as > well or is there a better way? > > /Henrik -- 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.
