Examples of resetValidation()


Examples of org.apache.cayenne.testdo.mt.ClientMtTable1.resetValidation()

        context.commitChanges();
        assertFalse(o1.isValidatedForInsert());
        assertFalse(o1.isValidatedForDelete());
        assertTrue(o1.isValidatedForUpdate());

        o1.resetValidation(false);
        context.deleteObjects(o1);
        context.deleteObjects(o2);

        context.commitChanges();
        assertFalse(o1.isValidatedForInsert());
View Full Code Here

Examples of org.apache.cayenne.testdo.mt.ClientMtTable1.resetValidation()

        assertTrue(o1.isValidatedForDelete());
        assertFalse(o1.isValidatedForUpdate());

        ClientMtTable1 o11 = context.newObject(ClientMtTable1.class);
        o11.setGlobalAttribute1("G1");
        o11.resetValidation(true);

        try {
            context.commitChanges();
            fail("Validation failure must have prevented commit");
        }
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.