本文整理汇总了Java中javax.persistence.ConstraintMode类的典型用法代码示例。如果您正苦于以下问题:Java ConstraintMode类的具体用法?Java ConstraintMode怎么用?Java ConstraintMode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ConstraintMode类属于javax.persistence包,在下文中一共展示了ConstraintMode类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: mapConstraint
import javax.persistence.ConstraintMode; //导入依赖的package包/类
private ReferentialAction mapConstraint(ConstraintMode constraint) {
switch (constraint) {
case NO_CONSTRAINT:
return ReferentialAction.NO_ACTION;
default:
case CONSTRAINT:
case PROVIDER_DEFAULT:
return ReferentialAction.CASCADE;
}
}
开发者ID:requery,项目名称:requery,代码行数:11,代码来源:JoinTableAssociation.java
示例2: getEnvScript
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@Cascade(org.hibernate.annotations.CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "ENV_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getEnvScript() {
return envScript;
}
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:8,代码来源:TaskData.java
示例3: getScript
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@Cascade(org.hibernate.annotations.CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getScript() {
return script;
}
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:8,代码来源:TaskData.java
示例4: getPreScript
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "PRE_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getPreScript() {
return preScript;
}
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:8,代码来源:TaskData.java
示例5: getPostScript
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "POST_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getPostScript() {
return postScript;
}
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:8,代码来源:TaskData.java
示例6: getCleanScript
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "CLEAN_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getCleanScript() {
return cleanScript;
}
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:8,代码来源:TaskData.java
示例7: getFlowScript
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@Cascade(CascadeType.ALL)
@OneToOne(fetch = FetchType.LAZY)
// disable foreign key, to be able to remove runtime data
@JoinColumn(name = "FLOW_SCRIPT_ID", foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
public ScriptData getFlowScript() {
return flowScript;
}
开发者ID:ow2-proactive,项目名称:scheduling,代码行数:8,代码来源:TaskData.java
示例8: getApprovals
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(name = "approval" , nullable = true, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
public Approvals getApprovals() {
return this.approvals;
}
开发者ID:TremoloSecurity,项目名称:OpenUnison,代码行数:6,代码来源:AuditLogs.java
示例9: value
import javax.persistence.ConstraintMode; //导入依赖的package包/类
@Override
public ConstraintMode value() {
return ConstraintMode.CONSTRAINT;
}
开发者ID:GeeQuery,项目名称:ef-orm,代码行数:5,代码来源:ForeignKey.java
注:本文中的javax.persistence.ConstraintMode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论