Package cat.quickdb.complexmodel

Examples of cat.quickdb.complexmodel.Parent


    @Test
    public void testQuerySystemSimpleCondition(){
        Reference ref = new Reference();
        ref.setValue("housemd");

        Parent parent = new Parent();
        parent.setDescription("this is a test for parent");
        parent.setReference(ref);

        boolean value = admin.save(parent);
        Assert.assertTrue(value);

        Parent p = new Parent();
        admin.obtain(p, "reference.value = 'housemd'");

        Assert.assertEquals(p.getReference().getValue(), "housemd");
        Assert.assertEquals(p.getDescription(), "this is a test for parent");
    }
View Full Code Here


    @Test
    public void testQuerySystemComplexCondition(){
        Reference ref = new Reference();
        ref.setValue("house md");

        Parent parent = new Parent();
        parent.setDescription("testing5");
        parent.setReference(ref);

        boolean value = admin.save(parent);
        Assert.assertTrue(value);

        Parent p = new Parent();
        admin.obtain(p, "reference.value = 'house md' && description = 'testing5'");

        Assert.assertEquals(p.getReference().getValue(), "house md");
        Assert.assertEquals(p.getDescription(), "testing5");
    }
View Full Code Here

TOP

Related Classes of cat.quickdb.complexmodel.Parent

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.