Search in sources :

Example 1 with OwnsConstraint

use of com.vaticle.typedb.core.pattern.constraint.type.OwnsConstraint in project grakn by graknlabs.

the class TypeVariable method owns.

public OwnsConstraint owns(TypeVariable attributeType, @Nullable TypeVariable overriddenAttributeType, boolean isKey) {
    OwnsConstraint ownsConstraint = new OwnsConstraint(this, attributeType, overriddenAttributeType, isKey);
    constrain(ownsConstraint);
    return ownsConstraint;
}
Also used : OwnsConstraint(com.vaticle.typedb.core.pattern.constraint.type.OwnsConstraint)

Aggregations

OwnsConstraint (com.vaticle.typedb.core.pattern.constraint.type.OwnsConstraint)1