Package cat.quickdb.complexmodel

Examples of cat.quickdb.complexmodel.Son


    @Test
    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);
        Assert.assertTrue(value);

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

        Assert.assertEquals(s.getReference().getValue(), "house");
        Assert.assertEquals(s.getDescription(), "parent description");
    }
View Full Code Here


    @Test
    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);
        Assert.assertTrue(value);
       
        String sql = "SELECT Son.data, Parent.description, Reference.value " +
View Full Code Here

TOP

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