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.