xPetstore Servlet implementation
The Database

The database is composed of the following tables:

Name Description
T_ACCOUNT Login table for the customers
T_CUSTOMER Customer' information
T_CATEGORY The catalog categories (i.e. Fish, Dogs, Cats, etc.)
T_PRODUCT Catalog products. Each product may have one or more variants (Items). A typical variant is usually male or female
T_ITEM Individual product details
T_ORDER Customers' orders
T_ORDER_ITEM Items ordered by the Customers

 
The Domain

The domain contains all the business objects of the application. The business objects maintains and persists the state of the application into the database.

 
The Web

 
The Code Generation Patterns

Business Object
Each business object named xpetstore.domain.*name will have an Hibernate mapping file generate with the name xpetstore.domain.*name.hbm.xml

WebWork
All Webwork classes named xpetstore.web.webwork.action.* will be described in WEB-INF/struts-config.xml.

Web Servlet
All classes named xpetstore.web.servlet.* will be described in WEB-INF/web.xml.

Web Filters
All classes named xpetstore.web.filter.* will be described in WEB-INF/web.xml.

Application Server Deployment Desciptors
Application server specific deployment descriptors will also be generated:

  • JBoss: jboss-web.xml
  • WebLogic: weblogic.xml