Package quickdb.complexmodel

Examples of quickdb.complexmodel.Parent


    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);
        System.out.println(value);

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

        System.out.println(p.getReference().getValue().equalsIgnoreCase("house md"));
        System.out.println(p.getDescription().equalsIgnoreCase("testing5"));
    }
View Full Code Here


    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);
        System.out.println(value);

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

        System.out.println(p.getReference().getValue().equalsIgnoreCase("housemd"));
        System.out.println(p.getDescription().equalsIgnoreCase("this is a test for parent"));
    }
View Full Code Here

TOP

Related Classes of 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.