@Column(s) not allowed on a @ManyToOne property:
来源:互联网 发布:如何网络销售水果 编辑:程序博客网 时间:2024/06/13 17:18
琢磨半天,多对一的出错了。
@ManyToOne()
@Column(name="depart_id")private Department depart;
public int getId() {
return id;
}
应该把@Column(name="depart_id")改成@JoinColumn(name="depart_id")
0 0
- @Column(s) not allowed on a @ManyToOne property:
- @Column(s) not allowed on a @ManyToOne property: com.strive.entity.Module.parent
- org.hibernate.AnnotationException: @Column(s) not allowed on a @ManyToOne property: entity.KpsysLog
- org.hibernate.AnnotationException: @Column(s) not allowed on a @ManyToOne property: entity.KpsysLog.
- JPA保存数据异常:org.hibernate.AnnotationException: @COLUMN(s) NOT allowed ON a @ManyToOne property
- column not allowed here
- Oracle ORA-00984: column not allowed here
- ORA-01733: virtual column not allowed here
- iOS 类别和继承的区别之synthesize not allowed in a category\'s implementation
- iOS 类别和继承的区别之synthesize not allowed in a category's implementation
- Uncaught TypeError: s.elem.on is not a function
- 405 Method Not Allowed on ajax PUT
- SQL : Compare a column's value is null or not ? is null
- Cannot find any information on property 'S' in a bean of type 'beans.Circle'
- Cannot find any information on property 'S' in a bean of type 'beans.Circle'
- use a data or computed property based on the prop's value.
- 错误:constructors not allowed a return type
- constructors not allowed a return type
- 终止进程的5种方法
- vmware正在进行简易安装 无法手动启动安装vmwaretool的解决方法
- 清除浮动的小例子
- 蓝桥历届试题 数独
- jquery 根据name属性查找元素
- @Column(s) not allowed on a @ManyToOne property:
- PHP之OOP: 编程思想从过程到对象!
- linux下线程的两种封装方式
- DSST(Accurate Scale Estimation for Robust Visual Tracking 代码解读(2)
- Linux 防火墙设置失败
- gcc常用编译选项详解
- C# 常用的正则表达式
- iOS 图片 保存到沙盒路径/相册、图片缩小、图片截取
- Ubuntu14.04下sick LMS5xx的gmapping建图