在写一个自关联的实体时报错:org.hibernate.AnnotationException: @Column(s) not allowed on a @ManyToOne property: pp.entity.Employee.superior
@ManyToOne(targetEntity=Employee.class)
@Column(nullable=true)
@JoinColumn(name="superiorId",updatable=false,insertable=false)
private Employee superior;
@OneToMany(mappedBy="superior")
@Column(nullable=true)
private List<Employee> underlings=new ArrayList<Employee>();
更改为:
@ManyToOne(targetEntity=Employee.class)
//@Column(nullable=true)
@JoinColumn(name="superiorId",updatable=false,insertable=false,nullable=true)
private Employee superior;
@OneToMany(mappedBy="superior")
@Column(nullable=true)
private List<Employee> underlings=new ArrayList<Employee>();
分享到:
相关推荐
设置隐试打开PPT报错 Hiding the application window is not allowed
主要介绍了php采用curl访问域名返回405 method not allowed提示的解决方法,需要的朋友可以参考下
Android WebView 报 Not allowed to load local resource错误的解决办法 博客地址:http://blog.csdn.net/yuzhiqiang_1993/article/details/76228541
NR5G网络拒绝码-5gmm_cause = 7 (0x7) (5GS Service not allowed)
现象: … java: 1801: method does not override a method from its superclass @Override… 原因: Eclipse is defaulting to Java 1.5 and you have classes implementing interface methods (which in Java 1.6 ...
Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,...
从3GPP协议和UE端行为分析5G gmm cause #27的网络问题
在使用MySQL数据库时,可能会遇到"Host 'localhost' is not allowed to connect to this MySQL server"的错误信息,这是由于MySQL的安全机制所致。MySQL的安全机制是基于主机名和用户名的组合来控制访问权限的。因此...
NULL 博文链接:https://yizhilong28.iteye.com/blog/1137285
message from server: “Host ‘****’ is not allowed to connect to this MySQL server 1:在登录mysql服务器 2:执行:GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION //赋予任何主机访问数据的...
directories that will not be allowed to be processed by Diskeeper. Event Logging ------------- Diskeeper records information about its activity in two ways. First, general information about ...
of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence ...
如果你想连接你的mysql的时候发生这个错误: 代码如下: ERROR 1130: Host ‘192.168.1.3’ is not allowed to connect to this MySQL server 解决方法: 1。 改表法。可能是你的帐号不允许从远程登陆,只能在...
主要介绍了http请求405错误方法不被允许的解决 (Method not allowed),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
nginx: [emerg] “proxy_cache_path” directive is not allowed here in /etc/nginx/conf.d/default.conf:29 提示意思“proxy_cache_path指令不被允许”,在官网上查找了相关说明,也没有发现问题,最后看应用范围...
主要给大家介绍了关于Golang报"import cycle not allowed"错误的2种解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以们下面随着小编来一起看看吧
NULL 博文链接:https://rayoo.iteye.com/blog/1973032
Error:(25, 5) Integer types not allowed (at 'android:textSize' with value '12'). 代码 <style name=HorizontalBtnLayout> <item name=android:layout_height>match_parent ...
主要给大家介绍了关于golang中不允许循环import问题("import cycle not allowed")的相关资料,文中通过示例代码介绍的非常详细,需要的朋友可以参考借鉴,下面随着小编来一起学习学习吧