hibernate annotaion manyToOne 指定外键名,和非空属性

来源:互联网 发布:td200文本显示器编程 编辑:程序博客网 时间:2024/06/06 08:55
@ManyToOne(targetEntity=Customer.class)
@JoinColumn(name="CUSTOMER_ID",nullable=false)
public Customer getCustomer() {
return customer;
}
0 0
原创粉丝点击