Session sess=sf.getCurrentSession();
List pl= sess.createQuery("select o.identifier from domain.Fleet f,domain.Unit u,domain.object o "
+ " where f.pk_fleetid=u.fk_fleetid and "
+ " u.fk_objectid=o.pk_objectid and "
+ "f.pk_fleetid= :fleetid ").setInteger(“fleetid”, 4)
.list();
int size=pl.size();
相关文章
- 02-14Hibernate中cascade属性的区别
- 02-14hibernate中cascade属性以及inverse属性
- 02-14hibernate 1对1的关系
- 02-14SPOJ D-query(主席树入门)
- 02-14hibernate使用注解配置索引
- 02-14HDU3686 Traffic Real Time Query【缩点+lca】
- 02-14hql中or的用法(代替union)
- 02-14nested exception is org.hibernate.QueryException: could not resolve property
- 02-14hibernate 的一对多关联关系映射配置
- 02-14hql中的in查询