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

在使用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就会消失。

文章来自:http://blog.csdn.net/u010102162/article/details/40923751
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3