Java 类javax.persistence.ConstraintMode 实例源码

项目:requery    文件:JoinTableAssociation.java   
private ReferentialAction mapConstraint(ConstraintMode constraint) {
    switch (constraint) {
        case NO_CONSTRAINT:
            return ReferentialAction.NO_ACTION;
        default:
        case CONSTRAINT:
        case PROVIDER_DEFAULT:
            return ReferentialAction.CASCADE;
    }
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:scheduling    文件:TaskData.java   
@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;
}
项目:OpenUnison    文件:AuditLogs.java   
@ManyToOne(fetch = FetchType.LAZY, optional = true)
@JoinColumn(name = "approval" , nullable = true, foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))
public Approvals getApprovals() {
    return this.approvals;
}
项目:ef-orm    文件:ForeignKey.java   
@Override
public ConstraintMode value() {
    return ConstraintMode.CONSTRAINT;
}