Examples of PruebaChild


Examples of cat.quickdb.model.PruebaChild

        Assert.assertTrue((results.size() >= 3));
    }

    @Test
    public void testInheritanceWithAnnotation(){
        PruebaChild p = new PruebaChild();
        p.setName("prueba herencia annotation");
        p.setNameParent("nombre padre annotation");
        p.setNumber(333);
        boolean value = admin.save(p);
        Assert.assertTrue(value);

        PruebaChild pr = new PruebaChild();
        value = admin.obtainWhere(pr, "name='prueba herencia annotation'");
        Assert.assertTrue(value);

        Assert.assertEquals(333, pr.getNumber());
    }
View Full Code Here

Examples of quickdb.model.PruebaChild

        ArrayList results = admin.obtainAll(Prueba.class, "name like 'obtainAll%'");
        System.out.println((results.size() >= 3));
    }

    public void testInheritanceWithAnnotation(){
        PruebaChild p = new PruebaChild();
        p.setName("prueba herencia annotation");
        p.setNameParent("nombre padre annotation");
        p.setNumber(333);
        boolean value = admin.save(p);
        System.out.println(value);

        PruebaChild pr = new PruebaChild();
        value = admin.obtainWhere(pr, "name='prueba herencia annotation'");
        System.out.println(value);

        System.out.println(333 == pr.getNumber());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.