Package quickdb.complexmodel

Examples of quickdb.complexmodel.Son


    public void testQuerySystemWithInheritance(){
        Reference ref = new Reference();
        ref.setValue("house");

        Son son = new Son();
        son.setData("data from son");
        son.setSonName("child");
        son.setDescription("parent description");
        son.setReference(ref);

        boolean value = admin.save(son);
        System.out.println(value);

        Son s = new Son();
        admin.obtain(s, "reference.value = 'house'");

        System.out.println(s.getReference().getValue().equalsIgnoreCase("house"));
        System.out.println(s.getDescription().equalsIgnoreCase("parent description"));
    }
View Full Code Here


    public void testObtainJoin(){
        Reference ref = new Reference();
        ref.setValue("house");

        Son son = new Son();
        son.setData("data from son");
        son.setSonName("child");
        son.setDescription("parent description");
        son.setReference(ref);

        boolean value = admin.save(son);
        System.out.println(value);
       
        String sql = "SELECT Son.data, Parent.description, Reference.value " +
View Full Code Here

TOP

Related Classes of quickdb.complexmodel.Son

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.