java - hql关联查询报错。。。
黄舟
黄舟 2017-04-17 17:27:55
0
0
301

代码:

if(hhUserEntity!=null){ String ids=""; Object [] couponIds=(Object[])couponJson.toArray(); if(couponIds!=null&&couponIds.length>0){ for(int i=0;i list = super.findByQueryString(hql); System.out.println(list); if(list!=null&&list.size()>0){ super.deleteAllEntitie(list); } 报错:org.hibernate.QueryException: could not resolve property: CouponPoolEntity of: com.sendiy.hh.coupons.entity.CouponPublishEntity [from com.sendiy.hh.coupons.entity.CouponPublishEntity e inner join e.CouponPoolEntity c where c.owner='4028668150c6aedb0150c6ddde750005' and e.pubid in ('2') ] 这是实体类的问题吗? 实体类: @Entity

@Table(name = "couponpool", schema = "")
@SuppressWarnings("serial")
public class CouponPoolEntity implements java.io.Serializable {

/**couponseqid*/ private java.lang.Integer couponSeqId; /**批次号*/ private java.lang.String pubId; /**序号*/ private java.lang.String couponNo; /**验证码*/ private java.lang.String serialno;
黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

모든 응답 (0)
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!