标签:creates factor current bean hiberna bsp res etc cto
原生sql的查询,返回结果设置到DTO:
Query query = sessionFactoryRtData.getCurrentSession().createSQLQuery(hql.toString()).setResultTransformer(Transformers.aliasToBean(RTDataAttrDto.class));
标签:creates factor current bean hiberna bsp res etc cto
原文地址:http://www.cnblogs.com/lj821022/p/6606997.html