In my DAO classes, I return a list of entities.
Would you recommend I use a List<T>
like:
List<User> findAllUsers(...);
In my db calls, I want to wrap the collection and createa a ResultList<T>
that inherits List<T>
(or whatever generic collection you recommend I use) and add some properties to it, how would I do that?
public class ResultList<T> extends List<T> {
private int SomeThing;
// getter/setter
}
Is this (above) the best way?