Example usage for javax.persistence ConstraintMode NO_CONSTRAINT

List of usage examples for javax.persistence ConstraintMode NO_CONSTRAINT

Introduction

In this page you can find the example usage for javax.persistence ConstraintMode NO_CONSTRAINT.

Prototype

ConstraintMode NO_CONSTRAINT

To view the source code for javax.persistence ConstraintMode NO_CONSTRAINT.

Click Source Link

Document

Do not apply the constraint.

Usage

From source file:com.evolveum.midpoint.repo.sql.data.common.container.RAssignment.java

@org.hibernate.annotations.ForeignKey(name = "none")
@com.evolveum.midpoint.repo.sql.query.definition.Any(jaxbNameLocalPart = "extension")
@OneToOne(optional = true, orphanRemoval = true)
@Cascade({ org.hibernate.annotations.CascadeType.ALL })
@JoinColumns(value = { @JoinColumn(name = "extOid", referencedColumnName = "owner_owner_oid"),
        @JoinColumn(name = "extId", referencedColumnName = "owner_id") }, foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
public RAssignmentExtension getExtension() {
    return extension;
}