是什么意思" o"在Hibernate HQL中

时间:2015-12-29 14:42:24

标签: hibernate

String hql="select o from"+entityClass.getSimpleName()+" o where 1=1";

if(StringUtils.isNotBlank(whereHql)){
hql=hql+whereHql;

}

String orderByStr=this.buildOrderBy(orderBy);

hql=hql+orderByStr;

//" o"的含义是什么?在"选择o"。

1 个答案:

答案 0 :(得分:0)

o是别名。它表示entityClass的所有字段。 查询结果是entityClass实例列表