Package org.ocpsoft.rewrite.showcase.bookstore.model

Examples of org.ocpsoft.rewrite.showcase.bookstore.model.Book


               "worlds where magic is common.");

      categories.add(thriller);
      categories.add(fantasy);

      Book book1 = new Book();
      book1.setId(101L);
      book1.setCategory(thriller);
      book1.setPrice(8.99f);
      book1.setStock(3);
      book1.setYear(2012);
      book1.setTitle("The Bubble Gum Thief");
      book1.setAuthor("Jeff Miller");
      book1.setIsbn(9781612184838L);

      Book book2 = new Book();
      book2.setId(102L);
      book2.setCategory(thriller);
      book2.setPrice(15.99f);
      book2.setStock(1);
      book2.setYear(2012);
      book2.setTitle("May We Be Forgiven: A Novel");
      book2.setAuthor("A. M. Homes");
      book2.setIsbn(9780670025480L);

      books.add(book1);
      books.add(book2);

   }
View Full Code Here

TOP

Related Classes of org.ocpsoft.rewrite.showcase.bookstore.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.