Package quickdb.model

Examples of quickdb.model.Dog


        System.out.println(value);
    }

    public void testSaveObjectComposedIntuitive() {
        Dog dog = new Dog();
        Race race = new Race();
        race.setName("collie");
        dog.setColor("black");
        dog.setName("sasha");
        dog.setIdRace(race);

        boolean value = admin.save(dog);

        System.out.println(value);
    }
View Full Code Here


        System.out.println(value);
    }

    public void testSaveModifyObjectComposedIntuitive() {
        Dog dog = new Dog();
        Race race = new Race();
        race.setName("collie to modify");
        dog.setColor("black to modify");
        dog.setName("sasha to modify");
        dog.setIdRace(race);

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

        Dog d = new Dog();
        value = admin.obtainWhere(d, "name like '%modify'");
        System.out.println(value);

        Race r2 = new Race("new race modified");
        d.setIdRace(r2);
        d.setName("collie to modified");
        value = admin.modify(d);
        System.out.println(value);
    }
View Full Code Here

        System.out.println(value);
    }

    public void testSaveObjectComposedCollectionIntuitive() {
        ArrayList array = new ArrayList();
        Dog dog = new Dog();
        Race race = new Race();
        race.setName("race collection 1");
        dog.setName("dog name collection 1");
        dog.setIdRace(race);
        array.add(dog);

        Dog dog2 = new Dog();
        Race race2 = new Race();
        race2.setName("race collection 2");
        dog2.setName("dog name collection 2");
        dog2.setIdRace(race2);
        array.add(dog2);

        admin.setCollection(true);
        ArrayList list = admin.saveAll(array);
        admin.setCollection(false);
View Full Code Here

TOP

Related Classes of quickdb.model.Dog

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.