How to implement generic data in this case?

Asked

Viewed 42 times

0

I am using Ormlite in my application and want to implement a generic type in the following:

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

where "T" would be the generic.

Error:

Cannot resolves Symbol T

erro na IDE

  • Leaving a bit of the question friend, that IDE are using?

  • @Wakim the Dao interface is a lib. I was able to fix this problem but now I’m with another when I use the Overrides... http://ormlite.com/sqlite_java_android_orm.shtml Here you have all the files.

1 answer

2


You in the interface statement also have to indicate T

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.