Hi, I have this problem, I have a method that recives a Class class and I need to know what is it to know if I execute a method, please I need to know what method I can compare the class to if it is an instance of another
static public void deleteEntity(Class<?> a,Integer id){
EntityManager manager = JPAUtil.getEntityManager();
manager.getTransaction().begin();
{
Object t = manager.find(a, id);
manager.remove(t);
}
manager.getTransaction().commit();
manager.close();
if(a.isInstance(Traza.class)){ // Aqui necesesito saber de que es intancia a clase a
TrazaService.persistTraces();
}
}