On Wednesday, January 19, 2011 6:16:57 PM UTC+1, StefanR wrote:
>
> I try to use the locator pattern to separate Entities and Services.
> Unfortunately, the persist method cannot be mapped to my service
> implementation.
>
> Error message:
>
> 19.01.2011 18:09:54 com.abc.OrganizationRequest
> com.google.gwt.requestfactory.shared.InstanceRequest persist()
> Could not find matching method in com.abc.OrganizationService.
> Possible matches:
> void persist(com.abc.Organization )
>
> This is my setup:
> @Service(value = OrganizationService.class, locator =
> SpringServiceLocator.class)
> public interface OrganizationRequest extends RequestContext {
> InstanceRequest<OrganizationProxy, Void> persist();
> }
>
> public interface OrganizationService {
> void persist( Organization organization );
> }
>
> After debugging the problem seems to be, that
> OrganizationService.persist() is expected to have no arguments (which
> makes only sense if the method is within the entity directly).
Which is exactly what you've been declaring with an InstanceRequest.
> Any idea?
See https://groups.google.com/d/topic/google-web-toolkit/KfMh7dSYUVM/discussion
--
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.