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

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


   @RequestAction
   @Deferred
   public String loadData()
   {

      Category category = categoryDao.getBySeoKey(seoKey);

      if (category == null) {
         ResponseUtils.sendError(404);
         return null;
      }
View Full Code Here


   @PostConstruct
   public void init()
   {

      Category thriller = new Category();
      thriller.setId(1L);
      thriller.setName("Thriller");
      thriller.setSeoKey("thriller");
      thriller.setDescription("Thriller is a broad genre of literature, film, " +
               "and television programming that uses suspense, tension and excitement " +
               "as the main elements. Thrillers heavily stimulate the viewer's moods " +
               "giving them a high level of anticipation, ultra-heightened expectation, " +
               "uncertainty, surprise, anxiety and/or terror.");

      Category fantasy = new Category();
      fantasy.setId(2L);
      fantasy.setName("Fantasy");
      fantasy.setSeoKey("fantasy");
      fantasy.setDescription("Fantasy is a genre of fiction that commonly uses " +
               "magic and other supernatural phenomena as a primary element of plot, " +
               "theme, or setting. Many works within the genre take place in imaginary " +
               "worlds where magic is common.");

      categories.add(thriller);
View Full Code Here

TOP

Related Classes of org.ocpsoft.rewrite.showcase.bookstore.model.Category

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.