I am new to using Criteria, and i am trying to join tables on my query.
This is my expected query set up
Select * FROM ATable a INNER JOIN BTable b ON a.id = b.fk_id WHERE fk_pname = ":cat";
你知道我如何添加“INNER JOIN BTable b ON a.id = b.fk_id”吗?
我已经添加了实例,但不确定如何添加另一个表。标准条件 = this.getSession().createCriteria(ATable.class);
再次感谢你的帮助