码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-05-15 21:32:44      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:hibernate   spring      

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

没有指定实体标识符,

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

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

@Id
@Column(name="ID")

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

标签:hibernate   spring      

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!