Examples of OneToManyAssociation


Examples of org.apache.isis.core.metamodel.spec.feature.OneToManyAssociation

            if (instanceOf(imperativeFacets, CollectionValidateAddToFacetViaMethod.class, CollectionValidateRemoveFromFacetViaMethod.class)) {
                throw new UnsupportedOperationException(String.format("Cannot invoke supporting method '%s'; use only collection accessor/mutator", memberName));
            }

            final OneToManyAssociation otma = (OneToManyAssociation) objectMember;
            if (instanceOf(imperativeFacets, PropertyOrCollectionAccessorFacet.class)) {
                return handleGetterMethodOnCollection(method, args, targetAdapter, otma, memberName);
            }
            if (instanceOf(imperativeFacets, CollectionAddToFacet.class)) {
                checkUsability(getAuthenticationSession(), targetAdapter, objectMember);
View Full Code Here

Examples of org.javalite.activejdbc.associations.OneToManyAssociation

*/
public class AssociationEqualityTest extends ActiveJDBCTest {

    @Test
    public void testOneToManyEquals(){
        OneToManyAssociation one = new OneToManyAssociation("hello", "world", "hello_id");
        OneToManyAssociation two = new OneToManyAssociation("hello", "world", "hello_id");

        a(one).shouldBeEqual(two);

        OneToManyAssociation three = new OneToManyAssociation("hello", "world", "hi_id");
        a(one).shouldNotBeEqual(three);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.