Hi, I want to implement a generic Locator for RequestFactory and I am wondering what I should return in getDomainType().
I have a base Entity thats called EntityBase and holds the id and version. Any other entity extends from EntityBase. Then I have created an EntityLocator extends Locator<EntityBase, Long> and getDomainType() now has to return Class<EntityBase>. I want to use the Locator for every EntityProxy and somehow it doesn't feel right to return EntityBase.class when the Locator is used for example a PersonProxy. It works for now but is it correctly implemented? As far as I can see the method doesn't get called for now and a quick source code search doesn't reveal if the method is ever called. How have you implemented a generic Locator for JPA entities? Currently testing with GWT 2.4 RC1. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0fQ0g5r-HooJ. 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.
