Package cat.quickdb.model

Examples of cat.quickdb.model.Page


    }

    @Test
    public void testMany2ManyFunction(){
        ArrayList pages = new ArrayList();
        pages.add(new Page(2));
        pages.add(new Page(5));
        pages.add(new Page(7));
        Book book = new Book();
        book.setIsbn(234553);
        book.setName("foundation");
        book.setPage(pages);

        boolean value = admin.save(book);
        Assert.assertTrue(value);

        Book b = new Book();
        b.getPage().add(new Page());
        value = admin.obtainWhere(b, "name='foundation'");
        Assert.assertTrue(value);

        Assert.assertEquals(5, ((Page)b.getPage().get(1)).getPageNumber());
    }
View Full Code Here

TOP

Related Classes of cat.quickdb.model.Page

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.