hibernate关联数据作为查询条件
摘要:hibernate中,在前台当表关联的数据作为查询条件时,因为hibernate只接受能识别的属性(即在对应的hbm.xml文件中能找到的属性),如果没有,则在后台实现类中的hql中需要用别名进行查询: 前台页面: 后台的查询hql: if(gqm.getGtm() != null && gqm.g
阅读全文
posted @ 2017-03-23 11:41
posted @ 2017-03-23 11:41