Loading...
Hibernate hql 查询语句

Hibernate专题 2015/12/18 Hibernate

#many to many 

实体:User(List<Application> applicationList),Application

select u from User u inner join u.applicationList a where a.id=:applicationId;


#like

from User u where u.username like '%param%';


未完待续~


参考文档

http://www.cnblogs.com/bobomail/archive/2005/09/20/240352.html



Comments