Package quickdb.complexDataStructure.model

Examples of quickdb.complexDataStructure.model.SamePrimitiveCollection


        System.out.println(son2.getPhones().size() == 4);
        System.out.println(son2.getReference().getValueReferenceParent().equals("value from son reference parent"));
    }

    public void samePrimitiveCollectionTest(){
        SamePrimitiveCollection same = new SamePrimitiveCollection();
        same.setName("same name");

        ArrayList array1 = new ArrayList();
        array1.add(45345);
        array1.add(64556);
        array1.add(23112);

        ArrayList array2 = new ArrayList();
        array2.add(12);
        array2.add(54);
        array2.add(68);

        same.setNumbers1(array1);
        same.setNumbers2(array2);

        System.out.println(admin.save(same));

        SamePrimitiveCollection same2 = new SamePrimitiveCollection();
        admin.obtain(same2).If("name").equal("same name").find();

        System.out.println(same2.getNumbers1().size() == 3);
        System.out.println(same2.getNumbers2().size() == 3);
        System.out.println(same2.getNumbers1().get(0) == 45345);
        System.out.println(same2.getNumbers2().get(1) == 54);
    }
View Full Code Here

TOP

Related Classes of quickdb.complexDataStructure.model.SamePrimitiveCollection

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.