Further investigation has revealed that SimpleRequestProcessor call's ServiceLayer#isLive() for every non-null domain object to check if it's still there. Otherwise the write operation is set to "DELETE". IMO that's terrible: I don't want to do two entity manager/db lookups for every "find" (even if it's aggressively cached). Using DAOs, I don't even call remove() on my entities but on the DAO (and I call removeById() -- I don't have a domain object in these situations!)
So providing a ServiceLayerDecorator with an overridden isLive() method (returning always true) solves this part. But I still need the findXxx method because of the check Henrik mentions (even if it's never called). I really appreciate the possibility to use DAOs and service locators in 2.1.1 -- but unfortunately it's still not usable (for me). I don't want data access methods in my domain models and I don't want unnecessary db operations! And I don't want to provide a totally redundant Locator for *every* domain model either... Is there any way to avoid the check for the findXxx methods? Sebastian -- 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.
