-1
I have the following entities:
public class Mapa {
//many to one
private ItemMapa itemMapa;
}
public class ItemMapa {
//many to one
private Classe classe;
}
public class Classe {
private Long id;
}
I need to implement a query using criteria
, but I don’t know how to make a Join to get to the object Classe
from the object Mapa
. In hql would do something like this:
String hql = "FROM Mapa m WHERE m.itemMapa.classe.idClasse = :idClasse";