Hibernate: HQL query

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();

Hibernate: HQL queryHibernate: HQL query amadeus_liu2 发布了22 篇原创文章 · 获赞 0 · 访问量 242 私信 关注
上一篇:tensorflow: tensor,operation和Session


下一篇:tensorflow 中的L1和L2正则化