I have an entity as following :
public class Test extends AbstractEntity<Long> implements IHasDate { ... }
And it's DAO as following :
public class TestDAO extends AbstractDAO<Test, Long> { ... }
In the AbstractDAO
I want to test if the passed type parameter Test is an instance of IHasDate.
This is the defintion of the AbstractDAO
:
public abstract class AbstractDAO<T extends AbstractEntity<ID>, ID extends Serializable> {
public void test(){
// Here I want to test if the passed type parameter is an instance of IHasDate.
}
}
How can I solve this ?