'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将消失。

原文地址:https://www.cnblogs.com/lcchuguo/p/5044243.html