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

'Basic' attribute type should not be a persistence entity/a container

时间:2014-11-08 19:43:07      阅读:2019      评论:0      收藏:0      [点我收藏+]

标签:idea   hibernate   

在使用IDEA进行HIbernate开发时,从datasource得到的实体映射并不理想,需要手动更改。

在向实体类添加属性的Setter时,暂时会有红色tip:‘Basic‘ attribute type should not be a persistence entity

或者 ‘Basic‘ attribute type should not be a container。

然后,向hbm.xml文件添加关联关系后,那个红色tip就会消失。

'Basic' attribute type should not be a persistence entity/a container

标签:idea   hibernate   

原文地址:http://blog.csdn.net/u010102162/article/details/40923751

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