On Thursday, February 3, 2011 2:25:30 PM UTC+1, Patrice De Saint Steban 
wrote:
>
> Hello,
>
> We use the request factory with spring and classic services, and for find a 
> new entity, we use a method in the service and not in the domain entity.
> We create a ServiceLayerDecorator to override the loadDomainObject to load 
> the object without use the static method findxxx() in the entity.
>

You shouldn't do that (see below).
 

> It's works fine, put we must put a fake findxxx() static method for pass 
> the validation. We try to override the RequestFactoryInterfaceValidator for 
> remove the check findxxx() in the method checkIdAndVersion(), but it's not 
> works.
> Is there an another way to remove the check of the findxx() static method 
> without define a fake method ?
>

Use a Locator for your entities, and move your 
ServiceLayerDecorator#loadDomainObejct override within its find().

-- 
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.

Reply via email to