Examples of QueryCollection


Examples of cat.quickdb.query.model.QueryCollection

    @Test
    public void testQueryWithCollection(){
        QueryWithCollection with = new QueryWithCollection();
        with.setDescription("description");
        ArrayList<QueryCollection> qu = new ArrayList<QueryCollection>();
        qu.add(new QueryCollection(11));
        qu.add(new QueryCollection(22));
        qu.add(new QueryCollection(33));
        with.setQueryCollection(qu);
        Assert.assertTrue(admin.save(with));

        QueryWithCollection with2 = new QueryWithCollection();
        with2.setDescription("description2");
        ArrayList<QueryCollection> qu2 = new ArrayList<QueryCollection>();
        qu2.add(new QueryCollection(44));
        qu2.add(new QueryCollection(55));
        qu2.add(new QueryCollection(66));
        with2.setQueryCollection(qu2);
        Assert.assertTrue(admin.save(with2));

        QueryWithCollection with3 = new QueryWithCollection();
        admin.obtain(with3).If("value", QueryCollection.class, "queryCollection").equal(22).find();
View Full Code Here

Examples of quickdb.query.model.QueryCollection

    public void testQueryWithCollection(){
        QueryWithCollection with = new QueryWithCollection();
        with.setDescription("description");
        ArrayList<QueryCollection> qu = new ArrayList<QueryCollection>();
        qu.add(new QueryCollection(11));
        qu.add(new QueryCollection(22));
        qu.add(new QueryCollection(33));
        with.setQueryCollection(qu);
        System.out.println(admin.save(with));

        QueryWithCollection with2 = new QueryWithCollection();
        with2.setDescription("description2");
        ArrayList<QueryCollection> qu2 = new ArrayList<QueryCollection>();
        qu2.add(new QueryCollection(44));
        qu2.add(new QueryCollection(55));
        qu2.add(new QueryCollection(66));
        with2.setQueryCollection(qu2);
        System.out.println(admin.save(with2));

        QueryWithCollection with3 = new QueryWithCollection();
        admin.obtain(with3).If("value", QueryCollection.class, "queryCollection").equal(22).find();
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.