두 테이블 사이에서 내부 조인을 만들었지 만 작동하지 않습니다. 누군가가 가능한 빨리 나를 도울 수 있다면 그것은 많은 도움이 될 것입니다. 사전에내부 조인이 작동하지 않습니다.
덕분에
그것은 다음과 같습니다
List<Bondetal> bondetals = session.createQuery("from Bondetal bd inner join bd.Bon b where bd.idbon = b.idbon and idprodus = " + idprodus +" and Bon.suma >=" + suma).list();
내가이 오류를 얻을 :
Exception in thread "AWT-EventQueue-0" org.hibernate.QueryException: could not resolve property: Bon of: sakila.entity.Bondetal [from sakila.entity.Bondetal bd inner join bd.Bon b where bd.idbon = b.idbon and idprodus = 2 and Bon.suma >=1]
우리에게 Bondetal 클래스 –