我在两个表之间做了内连接,但它不起作用。 如果有人能够尽快帮助我,它会帮助我很多。我的内连接不起作用
在此先感谢
它看起来像这样:
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类 –