Join the Discussion

Recent site activity

Association Is Bidirectional With Asymmetric Derived Ends

Description

<put the description here>

Reference

<put the reference here>

QVTr

top relation AssociationIsBidirectionalWithAsymmetricDerivedEnds {

    checkonly domain source _association:Association {
        memberEnd = _derivedEnd:Property {
            isDerived = true,
            owner = c1:Class{}
        },
        memberEnd = _nonDerivedEnd:Property {
            isDerived = false,
            owner = c2:Class{}
        }
    };

    enforce domain target _c:Category {name = 'Semantic Anti-Patterns',
        pattern = _p:Pattern {name = 'AssociationIsBidirectionalWithAsymmetricDerivedEnds',
            rootBinding =  _rb1:RoleBinding {role = 'association', element = _association,
            childBinding = _rb2:RoleBinding {role = 'derivedEnd', element = _derivedEnd,
            childBinding = _rb3:RoleBinding {role = 'nonDerivedEnd', element = _nonDerivedEnd
    }}}}};
}

Examples

<put text or diagrams showing the anti-pattern>
Comments