Estou com um grande problema…
Quero executar essa query abaixo no hibernate:
select s.nm_student from teacher t inner join teacher_aux ta
on t.id_teacher=ta.id_teacher inner join class c
on ta.id_class=c.id_class inner join student s
on s.id_class=c.nm_class where t.id_teacher=2
Mas estou tendo problemas…
net.sf.hibernate.QueryException: in expected: ta [select s.nm_student from br.com.consa.profiles.entities.Teacher t inner join TeacherAux ta on t.id_teacher=ta.id_teacher inner join Class c on ta.id_class=c.id_class inner join Student s on s.id_class=c.nm_class where t.id_teacher=2]
será que alguem pode me ajudar???
:roll: