Package quickdb.model

Examples of quickdb.model.Book


    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);
        System.out.println(value);

        Book b = new Book();
        b.getPage().add(new Page());
        value = admin.obtainWhere(b, "name='foundation'");
        System.out.println(value);

        System.out.println(5 == ((Page)b.getPage().get(1)).getPageNumber());
    }
View Full Code Here

TOP

Related Classes of quickdb.model.Book

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.