Package play.modules.morphia.Model

Examples of play.modules.morphia.Model.MorphiaQuery


        LifeCycle lc1 = new LifeCycle();
        lc1.foo = "foo";
        lc1.bar = "order";
        lc1.save();
       
        MorphiaQuery q = LifeCycle.q("bar", "order");
        LifeCycle.batchDeleteFail = true;
        try {
            q.delete();
        } catch (Exception e) {
            // ignore
        }
        assertEquals(q.count(), 2);
        LifeCycle.batchDeleteFail = false;
       
        LifeCycle.batchDeletedFail = true;
        try {
            q.delete();
            assertFalse(true);
        } catch (Exception e) {
            //ignore
        }
        assertEquals(q.count(), 0);
        LifeCycle.batchDeletedFail = false;
    }
View Full Code Here

TOP

Related Classes of play.modules.morphia.Model.MorphiaQuery

Copyright © 2018 www.massapicom. 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.