美文网首页
Hibernate @JoinColumn 注解

Hibernate @JoinColumn 注解

作者: liveaswind | 来源:发表于2016-10-07 19:06 被阅读420次

@JoinColumn支持的属性

属性 是否必须 说明
columnDefinition 指定Hibernate使用该属性值指定的SQL片段来创建外键列
name 指定该外键列的列名
insertable 指定该列是否包含在Hibernate生成的insert语句的列表中。默认值: true
updatable 指定该列是否包含在Hibernate生成的update语句的列表中。默认值: true
nullable 指定该列是否允许为null。默认值: true
table 指定该列所在数据表的表名
unique 指定是否为该列增加唯一约束
referencedColumnName 指定该外列所参照的主键列的列名

相关文章

网友评论

      本文标题:Hibernate @JoinColumn 注解

      本文链接:https://www.haomeiwen.com/subject/cawyyttx.html