【发布时间】:2014-11-21 01:56:59
【问题描述】:
我是 Hibernate 和 Criteria Query 的新手。我想对 sakila 数据库执行操作。我想要以下SQL 查询的条件查询:
select c.city, cr.country
from city c
left join country cr
on c.country_id = cr.country_id;
【问题讨论】:
-
你对我的回答还有疑问吗?
-
CreateAlias() 只接受两个参数,它们都是字符串。
-
检查api,它有重载的方法--docs.jboss.org/hibernate/orm/3.5/api/org/hibernate/…
标签: mysql hibernate hibernate-criteria