No identifier specified for entity: com.hm.erp.bean.product.vo.ZtPrdAreasVo

时间:2015-05-15 21:32:32   收藏:0   阅读:321

No identifier specified for entity: com.hm.erp.bean.product.vo.ZtPrdAreasVo

没有指定实体标识符,

 这是因为实体类没有指定 主键id

需要在id的get方法上面添加注解:

@Id
@Column(name="ID")

原文:http://blog.csdn.net/kang649882/article/details/45747793

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!