How to implement generic data in this case?

0

I'm using ORMlite in my application and I want to implement a generic type in the following:

public interface AdminDao extends Dao<T, Integer> {
   ...
}

where "T" would be generic.

Error:

  

Can not solve symbol T

    
asked by anonymous 30.10.2014 / 21:21

1 answer

2

You in the interface statement must also indicate T

public interface AdminDao<T> extends Dao<T, Integer> {
   ...
}
    
30.10.2014 / 21:25