Maybe instead of parameterizing the method you should parameterize the
class:
class BaseEntity<T extends BaseEntity> {
public List<T> findPage(int start, int length, List<String> sortFields,
List<Boolean> sortDirs) {
…
}
}
class TestEntity extends BaseEntity<TestEntity> { … }
but even then, it wouldn't work, because of the issue David mentionned:
you'd have to repeat the method declaration inside TestEntityService (I
guess using this workaround, it would work though).
--
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.