阅读背景:

hibernate使用普通sql查询,映射到自定义pojo中

来源:互联网 
	public List<InsuranceRecordVo> getCustomRecodeListByCustomId2(String customId){
		String sql="select  b.product_name as companyName, a.create_date as date from ******* where customer_id =  ? ";
		Query query = this.createSqlQuery(sql, customId);
		query.setResultTransformer(Transformers.aliasToBean(InsuranceRecordVo.class));
		return  query.list();
		public List<InsuranceRecordVo> getCustomRecodeLis



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: