Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit.

  • Loading branch information...
commit c65a5e3e30b77e72e431023426c9d38b0a47fafe 0 parents
astefan authored
Showing with 9,322 additions and 0 deletions.
  1. +14 −0 jpetstore/.classpath
  2. +42 −0 jpetstore/.project
  3. +11 −0 jpetstore/.settings/.jsdtscope
  4. +7 −0 jpetstore/.settings/org.eclipse.jdt.core.prefs
  5. +10 −0 jpetstore/.settings/org.eclipse.wst.common.component
  6. +6 −0 jpetstore/.settings/org.eclipse.wst.common.project.facet.core.xml
  7. +1 −0  jpetstore/.settings/org.eclipse.wst.jsdt.ui.superType.container
  8. +1 −0  jpetstore/.settings/org.eclipse.wst.jsdt.ui.superType.name
  9. +19 −0 jpetstore/.settings/org.eclipse.wst.xml.core.prefs
  10. +9 −0 jpetstore/.settings/org.maven.ide.eclipse.prefs
  11. +101 −0 jpetstore/db/hsqldb/jpetstore-hsqldb-dataload.sql
  12. +166 −0 jpetstore/db/hsqldb/jpetstore-hsqldb-schema.sql
  13. BIN  jpetstore/db/hsqldb/jpetstore.lck
  14. +17 −0 jpetstore/db/hsqldb/jpetstore.properties
  15. +119 −0 jpetstore/db/hsqldb/jpetstore.script
  16. +2 −0  jpetstore/db/hsqldb/manager.bat
  17. +2 −0  jpetstore/db/hsqldb/manager.sh
  18. +45 −0 jpetstore/db/hsqldb/pom-manager.xml
  19. +44 −0 jpetstore/db/hsqldb/pom.xml
  20. +1 −0  jpetstore/db/hsqldb/server.bat
  21. +2 −0  jpetstore/db/hsqldb/server.properties
  22. +2 −0  jpetstore/db/hsqldb/server.sh
  23. +101 −0 jpetstore/db/mysql/jpetstore-mysql-dataload.sql
  24. +211 −0 jpetstore/db/mysql/jpetstore-mysql-schema.sql
  25. +101 −0 jpetstore/db/oracle/jpetstore-oracle-dataload.sql
  26. +136 −0 jpetstore/db/oracle/jpetstore-oracle-schema-xa1.sql
  27. +64 −0 jpetstore/db/oracle/jpetstore-oracle-schema-xa2.sql
  28. +203 −0 jpetstore/db/oracle/jpetstore-oracle-schema.sql
  29. +101 −0 jpetstore/db/postgres/jpetstore-postgres-dataload.sql
  30. +166 −0 jpetstore/db/postgres/jpetstore-postgres-schema.sql
  31. +102 −0 jpetstore/db/sqlfire/jpetstore-sqlfire-dataload.sql
  32. +188 −0 jpetstore/db/sqlfire/jpetstore-sqlfire-schema.sql
  33. +264 −0 jpetstore/pom.xml
  34. +98 −0 jpetstore/readme.txt
  35. +20 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/AccountDao.java
  36. +14 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/CategoryDao.java
  37. +19 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ItemDao.java
  38. +16 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/OrderDao.java
  39. +16 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ProductDao.java
  40. +24 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/MsSqlOrderDao.java
  41. +19 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/OracleSequenceDao.java
  42. +30 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/Sequence.java
  43. +57 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/SqlMapAccountDao.java
  44. +20 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/SqlMapCategoryDao.java
  45. +46 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/SqlMapItemDao.java
  46. +43 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/SqlMapOrderDao.java
  47. +46 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/SqlMapProductDao.java
  48. +28 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/SqlMapSequenceDao.java
  49. +107 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/maps/Account.xml
  50. +25 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/maps/Category.xml
  51. +76 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/maps/Item.xml
  52. +22 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/maps/LineItem.xml
  53. +75 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/maps/Order.xml
  54. +35 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/maps/Product.xml
  55. +23 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/dao/ibatis/maps/Sequence.xml
  56. +87 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/Account.java
  57. +83 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/Cart.java
  58. +43 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/CartItem.java
  59. +31 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/Category.java
  60. +71 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/Item.java
  61. +57 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/LineItem.java
  62. +174 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/Order.java
  63. +35 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/Product.java
  64. +29 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/logic/AccountValidator.java
  65. +22 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/logic/OrderService.java
  66. +49 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/logic/OrderValidator.java
  67. +55 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/logic/PetStoreFacade.java
  68. +160 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/domain/logic/PetStoreImpl.java
  69. +80 −0 ...tore/src/main/java/org/springframework/samples/jpetstore/domain/logic/SendOrderConfirmationEmailAdvice.java
  70. +51 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/service/JaxRpcOrderService.java
  71. +94 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/service/client/OrderServiceClient.java
  72. +45 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/AccountForm.java
  73. +119 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/AccountFormController.java
  74. +42 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/AddItemToCartController.java
  75. +34 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/ListOrdersController.java
  76. +39 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/OrderForm.java
  77. +111 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/OrderFormController.java
  78. +23 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/RemoveItemFromCartController.java
  79. +51 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/SearchProductsController.java
  80. +21 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/SignoffController.java
  81. +48 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/SignonController.java
  82. +37 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/SignonInterceptor.java
  83. +41 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/UpdateCartQuantitiesController.java
  84. +34 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/UserSession.java
  85. +44 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/ViewCartController.java
  86. +58 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/ViewCategoryController.java
  87. +35 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/ViewItemController.java
  88. +36 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/ViewOrderController.java
  89. +55 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/spring/ViewProductController.java
  90. +113 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/AccountActionForm.java
  91. +33 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/AddItemToCartAction.java
  92. +46 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/BaseAction.java
  93. +40 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/BaseActionForm.java
  94. +30 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/CartActionForm.java
  95. +17 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/DoNothingAction.java
  96. +36 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/EditAccountAction.java
  97. +31 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/EditAccountFormAction.java
  98. +19 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/ListOrdersAction.java
  99. +37 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/NewAccountAction.java
  100. +27 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/NewAccountFormAction.java
  101. +37 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/NewOrderAction.java
  102. +30 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/NewOrderFormAction.java
  103. +99 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/OrderActionForm.java
  104. +18 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/RemoveItemFromCartAction.java
  105. +46 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/SearchProductsAction.java
  106. +32 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/SecureBaseAction.java
  107. +52 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/SignonAction.java
  108. +36 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/UpdateCartQuantitiesAction.java
  109. +33 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/ViewCartAction.java
  110. +45 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/ViewCategoryAction.java
  111. +22 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/ViewItemAction.java
  112. +28 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/ViewOrderAction.java
  113. +42 −0 jpetstore/src/main/java/org/springframework/samples/jpetstore/web/struts/ViewProductAction.java
  114. +3 −0  jpetstore/src/main/webapp/META-INF/MANIFEST.MF
  115. +105 −0 jpetstore/src/main/webapp/WEB-INF/applicationContext.xml
  116. +102 −0 jpetstore/src/main/webapp/WEB-INF/dataAccessContext-jta.xml
  117. +95 −0 jpetstore/src/main/webapp/WEB-INF/dataAccessContext-local.xml
  118. +11 −0 jpetstore/src/main/webapp/WEB-INF/jdbc.properties
  119. +85 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/Cart.jsp
  120. +33 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/Category.jsp
  121. +68 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/Checkout.jsp
  122. +78 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/ConfirmOrder.jsp
  123. +59 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/EditAccountForm.jsp
  124. +7 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/Error.jsp
  125. +101 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/IncludeAccountFields.jsp
  126. +11 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/IncludeBanner.jsp
  127. +20 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/IncludeBottom.jsp
  128. +33 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/IncludeMyList.jsp
  129. +16 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/IncludeQuickHeader.jsp
  130. +44 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/IncludeTop.jsp
  131. +56 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/Item.jsp
  132. +19 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/ListOrders.jsp
  133. +108 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/NewOrderForm.jsp
  134. +50 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/Product.jsp
  135. +34 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/SearchProducts.jsp
  136. +75 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/ShippingForm.jsp
  137. +41 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/SignonForm.jsp
  138. +132 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/ViewOrder.jsp
  139. +78 −0 jpetstore/src/main/webapp/WEB-INF/jsp/spring/index.jsp
  140. +85 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/Cart.jsp
  141. +33 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/Category.jsp
  142. +68 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/Checkout.jsp
  143. +78 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/ConfirmOrder.jsp
  144. +33 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/EditAccountForm.jsp
  145. +7 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/Error.jsp
  146. +54 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/IncludeAccountFields.jsp
  147. +13 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/IncludeBanner.jsp
  148. +20 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/IncludeBottom.jsp
  149. +33 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/IncludeMyList.jsp
  150. +16 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/IncludeQuickHeader.jsp
  151. +54 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/IncludeTop.jsp
  152. +56 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/Item.jsp
  153. +19 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/ListOrders.jsp
  154. +30 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/NewAccountForm.jsp
  155. +60 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/NewOrderForm.jsp
  156. +50 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/Product.jsp
  157. +34 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/SearchProducts.jsp
  158. +42 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/ShippingForm.jsp
  159. +41 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/SignonForm.jsp
  160. +132 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/ViewOrder.jsp
  161. +78 −0 jpetstore/src/main/webapp/WEB-INF/jsp/struts/index.jsp
  162. +16 −0 jpetstore/src/main/webapp/WEB-INF/log4j.properties
  163. +6 −0 jpetstore/src/main/webapp/WEB-INF/mail.properties
  164. +115 −0 jpetstore/src/main/webapp/WEB-INF/petstore-servlet.xml
  165. +31 −0 jpetstore/src/main/webapp/WEB-INF/remoting-servlet.xml
  166. +51 −0 jpetstore/src/main/webapp/WEB-INF/server-config.wsdd
  167. +15 −0 jpetstore/src/main/webapp/WEB-INF/sql-map-config.xml
  168. +107 −0 jpetstore/src/main/webapp/WEB-INF/struts-config.xml
  169. +188 −0 jpetstore/src/main/webapp/WEB-INF/web.xml
  170. +158 −0 jpetstore/src/main/webapp/help.html
  171. BIN  jpetstore/src/main/webapp/images/banner_birds.gif
  172. BIN  jpetstore/src/main/webapp/images/banner_cats.gif
  173. BIN  jpetstore/src/main/webapp/images/banner_dogs.gif
  174. BIN  jpetstore/src/main/webapp/images/banner_fish.gif
  175. BIN  jpetstore/src/main/webapp/images/banner_reptiles.gif
  176. BIN  jpetstore/src/main/webapp/images/bird1.gif
  177. BIN  jpetstore/src/main/webapp/images/bird1.jpg
  178. BIN  jpetstore/src/main/webapp/images/bird2.gif
  179. BIN  jpetstore/src/main/webapp/images/bird2.jpg
  180. BIN  jpetstore/src/main/webapp/images/bird3.gif
  181. BIN  jpetstore/src/main/webapp/images/bird4.gif
  182. BIN  jpetstore/src/main/webapp/images/bird5.gif
  183. BIN  jpetstore/src/main/webapp/images/bird6.gif
  184. BIN  jpetstore/src/main/webapp/images/birds_icon.gif
  185. BIN  jpetstore/src/main/webapp/images/bkg-sidebar.gif
  186. BIN  jpetstore/src/main/webapp/images/bkg-topbar.gif
  187. BIN  jpetstore/src/main/webapp/images/button_add_to_cart.gif
  188. BIN  jpetstore/src/main/webapp/images/button_checkout.gif
  189. BIN  jpetstore/src/main/webapp/images/button_continue.gif
  190. BIN  jpetstore/src/main/webapp/images/button_next.gif
  191. BIN  jpetstore/src/main/webapp/images/button_prev.gif
  192. BIN  jpetstore/src/main/webapp/images/button_previous.gif
  193. BIN  jpetstore/src/main/webapp/images/button_proceed.gif
  194. BIN  jpetstore/src/main/webapp/images/button_register_now.gif
  195. BIN  jpetstore/src/main/webapp/images/button_remove.gif
  196. BIN  jpetstore/src/main/webapp/images/button_submit.gif
  197. BIN  jpetstore/src/main/webapp/images/button_update_cart.gif
  198. BIN  jpetstore/src/main/webapp/images/cart.gif
  199. BIN  jpetstore/src/main/webapp/images/cartHL.gif
  200. BIN  jpetstore/src/main/webapp/images/cat1.gif
  201. BIN  jpetstore/src/main/webapp/images/cat1.jpg
  202. BIN  jpetstore/src/main/webapp/images/cat2.gif
  203. BIN  jpetstore/src/main/webapp/images/cat2.jpg
  204. BIN  jpetstore/src/main/webapp/images/cat3.gif
  205. BIN  jpetstore/src/main/webapp/images/cat4.gif
  206. BIN  jpetstore/src/main/webapp/images/cats_icon.gif
  207. BIN  jpetstore/src/main/webapp/images/dog1.gif
  208. BIN  jpetstore/src/main/webapp/images/dog1.jpg
  209. BIN  jpetstore/src/main/webapp/images/dog2.gif
  210. BIN  jpetstore/src/main/webapp/images/dog2.jpg
  211. BIN  jpetstore/src/main/webapp/images/dog3.gif
  212. BIN  jpetstore/src/main/webapp/images/dog3.jpg
  213. BIN  jpetstore/src/main/webapp/images/dog4.gif
  214. BIN  jpetstore/src/main/webapp/images/dog4.jpg
  215. BIN  jpetstore/src/main/webapp/images/dog5.gif
  216. BIN  jpetstore/src/main/webapp/images/dog5.jpg
  217. BIN  jpetstore/src/main/webapp/images/dog6.gif
  218. BIN  jpetstore/src/main/webapp/images/dog6.jpg
  219. BIN  jpetstore/src/main/webapp/images/dogs.gif
  220. BIN  jpetstore/src/main/webapp/images/dogs_icon.gif
  221. BIN  jpetstore/src/main/webapp/images/fish.gif
  222. BIN  jpetstore/src/main/webapp/images/fish1.gif
  223. BIN  jpetstore/src/main/webapp/images/fish1.jpg
  224. BIN  jpetstore/src/main/webapp/images/fish2.gif
  225. BIN  jpetstore/src/main/webapp/images/fish2.jpg
  226. BIN  jpetstore/src/main/webapp/images/fish3.gif
  227. BIN  jpetstore/src/main/webapp/images/fish3.jpg
  228. BIN  jpetstore/src/main/webapp/images/fish4.gif
  229. BIN  jpetstore/src/main/webapp/images/fish4.jpg
  230. BIN  jpetstore/src/main/webapp/images/fish_icon.gif
  231. BIN  jpetstore/src/main/webapp/images/help.gif
  232. BIN  jpetstore/src/main/webapp/images/helpHL.gif
  233. BIN  jpetstore/src/main/webapp/images/lizard1.gif
  234. BIN  jpetstore/src/main/webapp/images/lizard1.jpg
  235. BIN  jpetstore/src/main/webapp/images/lizard2.gif
  236. BIN  jpetstore/src/main/webapp/images/lizard3.gif
  237. BIN  jpetstore/src/main/webapp/images/logo-topbar.gif
  238. BIN  jpetstore/src/main/webapp/images/my_account.gif
  239. BIN  jpetstore/src/main/webapp/images/my_accountHL.gif
  240. BIN  jpetstore/src/main/webapp/images/poweredBySpring.gif
  241. BIN  jpetstore/src/main/webapp/images/poweredby.gif
  242. BIN  jpetstore/src/main/webapp/images/reptiles_icon.gif
  243. BIN  jpetstore/src/main/webapp/images/search.gif
  244. BIN  jpetstore/src/main/webapp/images/separator.gif
  245. BIN  jpetstore/src/main/webapp/images/sign-in.gif
  246. BIN  jpetstore/src/main/webapp/images/sign-inHL.gif
  247. BIN  jpetstore/src/main/webapp/images/sign-out.gif
  248. BIN  jpetstore/src/main/webapp/images/sign-outHL.gif
  249. BIN  jpetstore/src/main/webapp/images/sm_birds.gif
  250. BIN  jpetstore/src/main/webapp/images/sm_cats.gif
  251. BIN  jpetstore/src/main/webapp/images/sm_dogs.gif
  252. BIN  jpetstore/src/main/webapp/images/sm_fish.gif
  253. BIN  jpetstore/src/main/webapp/images/sm_reptiles.gif
  254. BIN  jpetstore/src/main/webapp/images/snake1.gif
  255. BIN  jpetstore/src/main/webapp/images/snake1.jpg
  256. BIN  jpetstore/src/main/webapp/images/splash.gif
  257. +75 −0 jpetstore/src/main/webapp/index.html
14 jpetstore/.classpath
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
+ <attributes>
+ <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
42 jpetstore/.project
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jpetstore</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ </natures>
+</projectDescription>
11 jpetstore/.settings/.jsdtscope
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
7 jpetstore/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+#Thu May 28 18:03:52 EDT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
10 jpetstore/.settings/org.eclipse.wst.common.component
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="jpetstore">
+ <wb-resource deploy-path="/" source-path="/src/main/webapp"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
+ <property name="java-output-path"/>
+ <property name="context-root" value="jpetstore"/>
+ </wb-module>
+</project-modules>
6 jpetstore/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.4"/>
+</faceted-project>
1  jpetstore/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
1  jpetstore/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -0,0 +1 @@
+Window
19 jpetstore/.settings/org.eclipse.wst.xml.core.prefs
@@ -0,0 +1,19 @@
+#Wed Jul 06 15:20:16 EEST 2011
+attributeHasNoValue=2
+eclipse.preferences.version=1
+endTagWithAttributes=2
+honourAllSchemaLocations=true
+indicateNoGrammar=1
+indiciateNoDocumentElement=-1
+markupValidation=true
+missingClosingBracket=2
+missingClosingQuote=2
+missingEndTag=2
+missingQuotes=2
+missingStartTag=1
+missingTagName=2
+namespaceInPITarget=2
+use-project-settings=true
+whitespaceAtStart=2
+whitespaceBeforeTagName=2
+xinclude=true
9 jpetstore/.settings/org.maven.ide.eclipse.prefs
@@ -0,0 +1,9 @@
+#Thu May 28 18:03:42 EDT 2009
+activeProfiles=
+eclipse.preferences.version=1
+fullBuildGoals=process-test-resources
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+skipCompilerPlugin=true
+version=1
101 jpetstore/db/hsqldb/jpetstore-hsqldb-dataload.sql
@@ -0,0 +1,101 @@
+INSERT INTO sequence VALUES ('ordernum', 1000);
+INSERT INTO sequence VALUES ('linenum', 1000);
+
+INSERT INTO signon VALUES ('j2ee','j2ee');
+INSERT INTO signon VALUES ('ACID','ACID');
+
+INSERT INTO account VALUES ('j2ee','yourname@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+INSERT INTO account VALUES ('ACID','acid@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+
+INSERT INTO profile VALUES ('j2ee','english','DOGS',1,1);
+INSERT INTO profile VALUES ('ACID','english','CATS',1,1);
+
+INSERT INTO bannerdata VALUES ('FISH','<image src="../images/banner_fish.gif">');
+INSERT INTO bannerdata VALUES ('CATS','<image src="../images/banner_cats.gif">');
+INSERT INTO bannerdata VALUES ('DOGS','<image src="../images/banner_dogs.gif">');
+INSERT INTO bannerdata VALUES ('REPTILES','<image src="../images/banner_reptiles.gif">');
+INSERT INTO bannerdata VALUES ('BIRDS','<image src="../images/banner_birds.gif">');
+
+INSERT INTO category VALUES ('FISH','Fish','<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>');
+INSERT INTO category VALUES ('DOGS','Dogs','<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>');
+INSERT INTO category VALUES ('REPTILES','Reptiles','<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>');
+INSERT INTO category VALUES ('CATS','Cats','<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>');
+INSERT INTO category VALUES ('BIRDS','Birds','<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>');
+
+INSERT INTO product VALUES ('FI-SW-01','FISH','Angelfish','<image src="../images/fish1.jpg">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-SW-02','FISH','Tiger Shark','<image src="../images/fish4.gif">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-FW-01','FISH', 'Koi','<image src="../images/fish3.gif">Fresh Water fish from Japan');
+INSERT INTO product VALUES ('FI-FW-02','FISH', 'Goldfish','<image src="../images/fish2.gif">Fresh Water fish from China');
+INSERT INTO product VALUES ('K9-BD-01','DOGS','Bulldog','<image src="../images/dog2.gif">Friendly dog from England');
+INSERT INTO product VALUES ('K9-PO-02','DOGS','Poodle','<image src="../images/dog6.gif">Cute dog from France');
+INSERT INTO product VALUES ('K9-DL-01','DOGS', 'Dalmation','<image src="../images/dog5.gif">Great dog for a Fire Station');
+INSERT INTO product VALUES ('K9-RT-01','DOGS', 'Golden Retriever','<image src="../images/dog1.gif">Great family dog');
+INSERT INTO product VALUES ('K9-RT-02','DOGS', 'Labrador Retriever','<image src="../images/dog5.gif">Great hunting dog');
+INSERT INTO product VALUES ('K9-CW-01','DOGS', 'Chihuahua','<image src="../images/dog4.gif">Great companion dog');
+INSERT INTO product VALUES ('RP-SN-01','REPTILES','Rattlesnake','<image src="../images/lizard3.gif">Doubles as a watch dog');
+INSERT INTO product VALUES ('RP-LI-02','REPTILES','Iguana','<image src="../images/lizard2.gif">Friendly green friend');
+INSERT INTO product VALUES ('FL-DSH-01','CATS','Manx','<image src="../images/cat3.gif">Great for reducing mouse populations');
+INSERT INTO product VALUES ('FL-DLH-02','CATS','Persian','<image src="../images/cat1.gif">Friendly house cat, doubles as a princess');
+INSERT INTO product VALUES ('AV-CB-01','BIRDS','Amazon Parrot','<image src="../images/bird4.gif">Great companion for up to 75 years');
+INSERT INTO product VALUES ('AV-SB-02','BIRDS','Finch','<image src="../images/bird1.gif">Great stress reliever');
+
+INSERT INTO supplier VALUES (1,'XYZ Pets','AC','600 Avon Way','','Los Angeles','CA','94024','212-947-0797');
+INSERT INTO supplier VALUES (2,'ABC Pets','AC','700 Abalone Way','','San Francisco ','CA','94024','415-947-0797');
+
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-1','FI-SW-01',16.50,10.00,1,'P','Large');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-2','FI-SW-01',16.50,10.00,1,'P','Small');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-3','FI-SW-02',18.50,12.00,1,'P','Toothless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-4','FI-FW-01',18.50,12.00,1,'P','Spotted');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-5','FI-FW-01',18.50,12.00,1,'P','Spotless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-6','K9-BD-01',18.50,12.00,1,'P','Male Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-7','K9-BD-01',18.50,12.00,1,'P','Female Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-8','K9-PO-02',18.50,12.00,1,'P','Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-9','K9-DL-01',18.50,12.00,1,'P','Spotless Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-10','K9-DL-01',18.50,12.00,1,'P','Spotted Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-11','RP-SN-01',18.50,12.00,1,'P','Venomless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-12','RP-SN-01',18.50,12.00,1,'P','Rattleless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-13','RP-LI-02',18.50,12.00,1,'P','Green Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-14','FL-DSH-01',58.50,12.00,1,'P','Tailless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-15','FL-DSH-01',23.50,12.00,1,'P','With tail');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-16','FL-DLH-02',93.50,12.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-17','FL-DLH-02',93.50,12.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-18','AV-CB-01',193.50,92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-19','AV-SB-02',15.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-20','FI-FW-02',5.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-21','FI-FW-02',5.29, 1.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-22','K9-RT-02',135.50, 100.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-23','K9-RT-02',145.49, 100.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-24','K9-RT-02',255.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-25','K9-RT-02',325.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-26','K9-CW-01',125.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-27','K9-CW-01',155.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-28','K9-RT-01',155.29, 90.00,1,'P','Adult Female');
+
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-1',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-2',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-3',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-4',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-5',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-6',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-7',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-8',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-9',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-10',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-11',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-12',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-13',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-14',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-15',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-16',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-17',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-18',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-19',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-20',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-21',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-22',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-23',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-24',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-25',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-26',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-27',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-28',10000);
166 jpetstore/db/hsqldb/jpetstore-hsqldb-schema.sql
@@ -0,0 +1,166 @@
+drop index productCat;
+drop index productName;
+drop index itemProd;
+
+drop table lineitem;
+drop table orderstatus;
+drop table orders;
+drop table bannerdata;
+drop table profile;
+drop table signon;
+drop table inventory;
+drop table item;
+drop table product;
+drop table account;
+drop table category;
+drop table supplier;
+drop table sequence;
+
+create table supplier (
+ suppid int not null,
+ name varchar(80) null,
+ status varchar(2) not null,
+ addr1 varchar(80) null,
+ addr2 varchar(80) null,
+ city varchar(80) null,
+ state varchar(80) null,
+ zip varchar(5) null,
+ phone varchar(80) null,
+ constraint pk_supplier primary key (suppid)
+);
+
+create table signon (
+ username varchar(25) not null,
+ password varchar(25) not null,
+ constraint pk_signon primary key (username)
+);
+
+create table account (
+ userid varchar(80) not null,
+ email varchar(80) not null,
+ firstname varchar(80) not null,
+ lastname varchar(80) not null,
+ status varchar(2) null,
+ addr1 varchar(80) not null,
+ addr2 varchar(40) null,
+ city varchar(80) not null,
+ state varchar(80) not null,
+ zip varchar(20) not null,
+ country varchar(20) not null,
+ phone varchar(80) not null,
+ constraint pk_account primary key (userid)
+);
+
+create table profile (
+ userid varchar(80) not null,
+ langpref varchar(80) not null,
+ favcategory varchar(30),
+ mylistopt int,
+ banneropt int,
+ constraint pk_profile primary key (userid)
+);
+
+create table bannerdata (
+ favcategory varchar(80) not null,
+ bannername varchar(255) null,
+ constraint pk_bannerdata primary key (favcategory)
+);
+
+create table orders (
+ orderid int not null,
+ userid varchar(80) not null,
+ orderdate date not null,
+ shipaddr1 varchar(80) not null,
+ shipaddr2 varchar(80) null,
+ shipcity varchar(80) not null,
+ shipstate varchar(80) not null,
+ shipzip varchar(20) not null,
+ shipcountry varchar(20) not null,
+ billaddr1 varchar(80) not null,
+ billaddr2 varchar(80) null,
+ billcity varchar(80) not null,
+ billstate varchar(80) not null,
+ billzip varchar(20) not null,
+ billcountry varchar(20) not null,
+ courier varchar(80) not null,
+ totalprice decimal(10,2) not null,
+ billtofirstname varchar(80) not null,
+ billtolastname varchar(80) not null,
+ shiptofirstname varchar(80) not null,
+ shiptolastname varchar(80) not null,
+ creditcard varchar(80) not null,
+ exprdate varchar(7) not null,
+ cardtype varchar(80) not null,
+ locale varchar(80) not null,
+ constraint pk_orders primary key (orderid)
+);
+
+create table orderstatus (
+ orderid int not null,
+ linenum int not null,
+ timestamp date not null,
+ status varchar(2) not null,
+ constraint pk_orderstatus primary key (orderid, linenum)
+);
+
+create table lineitem (
+ orderid int not null,
+ linenum int not null,
+ itemid varchar(10) not null,
+ quantity int not null,
+ unitprice decimal(10,2) not null,
+ constraint pk_lineitem primary key (orderid, linenum)
+);
+
+create table category (
+ catid varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_category primary key (catid)
+);
+
+create table product (
+ productid varchar(10) not null,
+ category varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_product primary key (productid),
+ constraint fk_product_1 foreign key (category)
+ references category (catid)
+);
+
+create index productCat on product (category);
+create index productName on product (name);
+
+create table item (
+ itemid varchar(10) not null,
+ productid varchar(10) not null,
+ listprice decimal(10,2) null,
+ unitcost decimal(10,2) null,
+ supplier int null,
+ status varchar(2) null,
+ attr1 varchar(80) null,
+ attr2 varchar(80) null,
+ attr3 varchar(80) null,
+ attr4 varchar(80) null,
+ attr5 varchar(80) null,
+ constraint pk_item primary key (itemid),
+ constraint fk_item_1 foreign key (productid)
+ references product (productid),
+ constraint fk_item_2 foreign key (supplier)
+ references supplier (suppid)
+);
+
+create index itemProd on item (productid);
+
+create table inventory (
+ itemid varchar(10) not null,
+ qty int not null,
+ constraint pk_inventory primary key (itemid)
+);
+
+create table sequence (
+ name varchar(30) not null,
+ nextid int not null,
+ constraint pk_sequence primary key (name)
+);
BIN  jpetstore/db/hsqldb/jpetstore.lck
Binary file not shown
17 jpetstore/db/hsqldb/jpetstore.properties
@@ -0,0 +1,17 @@
+#HSQL Database Engine 1.8.0.5
+#Thu Jun 23 16:45:42 EEST 2011
+hsqldb.script_format=0
+runtime.gc_interval=0
+sql.enforce_strict_size=false
+hsqldb.cache_size_scale=10
+readonly=false
+hsqldb.nio_data_file=true
+hsqldb.cache_scale=14
+version=1.8.0
+hsqldb.default_table_type=memory
+hsqldb.cache_file_scale=1
+hsqldb.log_size=200
+modified=yes
+hsqldb.cache_version=1.7.0
+hsqldb.original_version=1.7.1
+hsqldb.compatible_version=1.8.0
119 jpetstore/db/hsqldb/jpetstore.script
@@ -0,0 +1,119 @@
+CREATE SCHEMA PUBLIC AUTHORIZATION DBA
+CREATE MEMORY TABLE SUPPLIER(SUPPID INTEGER NOT NULL PRIMARY KEY,NAME VARCHAR(80),STATUS VARCHAR(2) NOT NULL,ADDR1 VARCHAR(80),ADDR2 VARCHAR(80),CITY VARCHAR(80),STATE VARCHAR(80),ZIP VARCHAR(5),PHONE VARCHAR(80))
+CREATE MEMORY TABLE SIGNON(USERNAME VARCHAR(25) NOT NULL PRIMARY KEY,PASSWORD VARCHAR(25) NOT NULL)
+CREATE MEMORY TABLE ACCOUNT(USERID VARCHAR(80) NOT NULL PRIMARY KEY,EMAIL VARCHAR(80) NOT NULL,FIRSTNAME VARCHAR(80) NOT NULL,LASTNAME VARCHAR(80) NOT NULL,STATUS VARCHAR(2),ADDR1 VARCHAR(80) NOT NULL,ADDR2 VARCHAR(40),CITY VARCHAR(80) NOT NULL,STATE VARCHAR(80) NOT NULL,ZIP VARCHAR(20) NOT NULL,COUNTRY VARCHAR(20) NOT NULL,PHONE VARCHAR(80) NOT NULL)
+CREATE MEMORY TABLE PROFILE(USERID VARCHAR(80) NOT NULL PRIMARY KEY,LANGPREF VARCHAR(80) NOT NULL,FAVCATEGORY VARCHAR(30),MYLISTOPT INTEGER,BANNEROPT INTEGER)
+CREATE MEMORY TABLE BANNERDATA(FAVCATEGORY VARCHAR(80) NOT NULL PRIMARY KEY,BANNERNAME VARCHAR(255))
+CREATE MEMORY TABLE ORDERS(ORDERID INTEGER NOT NULL PRIMARY KEY,USERID VARCHAR(80) NOT NULL,ORDERDATE DATE NOT NULL,SHIPADDR1 VARCHAR(80) NOT NULL,SHIPADDR2 VARCHAR(80),SHIPCITY VARCHAR(80) NOT NULL,SHIPSTATE VARCHAR(80) NOT NULL,SHIPZIP VARCHAR(20) NOT NULL,SHIPCOUNTRY VARCHAR(20) NOT NULL,BILLADDR1 VARCHAR(80) NOT NULL,BILLADDR2 VARCHAR(80),BILLCITY VARCHAR(80) NOT NULL,BILLSTATE VARCHAR(80) NOT NULL,BILLZIP VARCHAR(20) NOT NULL,BILLCOUNTRY VARCHAR(20) NOT NULL,COURIER VARCHAR(80) NOT NULL,TOTALPRICE DECIMAL(10,2) NOT NULL,BILLTOFIRSTNAME VARCHAR(80) NOT NULL,BILLTOLASTNAME VARCHAR(80) NOT NULL,SHIPTOFIRSTNAME VARCHAR(80) NOT NULL,SHIPTOLASTNAME VARCHAR(80) NOT NULL,CREDITCARD VARCHAR(80) NOT NULL,EXPRDATE VARCHAR(7) NOT NULL,CARDTYPE VARCHAR(80) NOT NULL,LOCALE VARCHAR(80) NOT NULL)
+CREATE MEMORY TABLE ORDERSTATUS(ORDERID INTEGER NOT NULL,LINENUM INTEGER NOT NULL,TIMESTAMP DATE NOT NULL,STATUS VARCHAR(2) NOT NULL,CONSTRAINT PK_ORDERSTATUS PRIMARY KEY(ORDERID,LINENUM))
+CREATE MEMORY TABLE LINEITEM(ORDERID INTEGER NOT NULL,LINENUM INTEGER NOT NULL,ITEMID VARCHAR(10) NOT NULL,QUANTITY INTEGER NOT NULL,UNITPRICE DECIMAL(10,2) NOT NULL,CONSTRAINT PK_LINEITEM PRIMARY KEY(ORDERID,LINENUM))
+CREATE MEMORY TABLE CATEGORY(CATID VARCHAR(10) NOT NULL PRIMARY KEY,NAME VARCHAR(80),DESCN VARCHAR(255))
+CREATE MEMORY TABLE PRODUCT(PRODUCTID VARCHAR(10) NOT NULL PRIMARY KEY,CATEGORY VARCHAR(10) NOT NULL,NAME VARCHAR(80),DESCN VARCHAR(255),CONSTRAINT FK_PRODUCT_1 FOREIGN KEY(CATEGORY) REFERENCES CATEGORY(CATID))
+CREATE INDEX PRODUCTCAT ON PRODUCT(CATEGORY)
+CREATE INDEX PRODUCTNAME ON PRODUCT(NAME)
+CREATE MEMORY TABLE ITEM(ITEMID VARCHAR(10) NOT NULL PRIMARY KEY,PRODUCTID VARCHAR(10) NOT NULL,LISTPRICE DECIMAL(10,2),UNITCOST DECIMAL(10,2),SUPPLIER INTEGER,STATUS VARCHAR(2),ATTR1 VARCHAR(80),ATTR2 VARCHAR(80),ATTR3 VARCHAR(80),ATTR4 VARCHAR(80),ATTR5 VARCHAR(80),CONSTRAINT FK_ITEM_1 FOREIGN KEY(PRODUCTID) REFERENCES PRODUCT(PRODUCTID),CONSTRAINT FK_ITEM_2 FOREIGN KEY(SUPPLIER) REFERENCES SUPPLIER(SUPPID))
+CREATE INDEX ITEMPROD ON ITEM(PRODUCTID)
+CREATE MEMORY TABLE INVENTORY(ITEMID VARCHAR(10) NOT NULL PRIMARY KEY,QTY INTEGER NOT NULL)
+CREATE MEMORY TABLE SEQUENCE(NAME VARCHAR(30) NOT NULL PRIMARY KEY,NEXTID INTEGER NOT NULL)
+CREATE USER SA PASSWORD ""
+GRANT DBA TO SA
+SET WRITE_DELAY 60
+SET SCHEMA PUBLIC
+INSERT INTO SUPPLIER VALUES(1,'XYZ Pets','AC','600 Avon Way','','Los Angeles','CA','94024','212-947-0797')
+INSERT INTO SUPPLIER VALUES(2,'ABC Pets','AC','700 Abalone Way','','San Francisco ','CA','94024','415-947-0797')
+INSERT INTO SIGNON VALUES('ACID','ACID')
+INSERT INTO SIGNON VALUES('j2ee','j2ee')
+INSERT INTO ACCOUNT VALUES('ACID','acid@yourdomain.com','ABC','XYX','OK','901 San Antonio Road','MS UCUP02-206','Palo Alto','CA','94303','USA','555-555-5555')
+INSERT INTO ACCOUNT VALUES('j2ee','yourname@yourdomain.com','ABC','XYX','OK','901 San Antonio Road','MS UCUP02-206','Palo Alto','CA','94303','USA','555-555-5555')
+INSERT INTO PROFILE VALUES('ACID','english','CATS',1,1)
+INSERT INTO PROFILE VALUES('j2ee','english','DOGS',1,1)
+INSERT INTO BANNERDATA VALUES('BIRDS','<image src="../images/banner_birds.gif">')
+INSERT INTO BANNERDATA VALUES('CATS','<image src="../images/banner_cats.gif">')
+INSERT INTO BANNERDATA VALUES('DOGS','<image src="../images/banner_dogs.gif">')
+INSERT INTO BANNERDATA VALUES('FISH','<image src="../images/banner_fish.gif">')
+INSERT INTO BANNERDATA VALUES('REPTILES','<image src="../images/banner_reptiles.gif">')
+INSERT INTO ORDERS VALUES(1000,'j2ee','2009-04-05','901 San Antonio Road','MS UCUP02-206','Palo Alto','CA','94303','USA','901 San Antonio Road','MS UCUP02-206','Palo Alto','CA','94303','USA','UPS',125.5,'ABC','XYX','ABC','XYX','999 9999 9999 9999','12/03','Visa','CA')
+INSERT INTO ORDERS VALUES(1001,'j2ee','2009-04-05','901 San Antonio Road','MS UCUP02-206','Palo Alto','CA','94303','USA','901 San Antonio Road','MS UCUP02-206','Palo Alto','CA','94303','USA','UPS',9.675E+8,'ABC','XYX','ABC','XYX','999 9999 9999 9999','12/03','Visa','CA')
+INSERT INTO ORDERSTATUS VALUES(1000,1000,'2009-04-05','P')
+INSERT INTO ORDERSTATUS VALUES(1001,1001,'2009-04-05','P')
+INSERT INTO LINEITEM VALUES(1000,1,'EST-26',1,125.5)
+INSERT INTO LINEITEM VALUES(1001,1,'EST-18',5000000,193.5)
+INSERT INTO CATEGORY VALUES('BIRDS','Birds','<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>')
+INSERT INTO CATEGORY VALUES('CATS','Cats','<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>')
+INSERT INTO CATEGORY VALUES('DOGS','Dogs','<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>')
+INSERT INTO CATEGORY VALUES('FISH','Fish','<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>')
+INSERT INTO CATEGORY VALUES('REPTILES','Reptiles','<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>')
+INSERT INTO PRODUCT VALUES('AV-CB-01','BIRDS','Amazon Parrot','<image src="../images/bird4.gif">Great companion for up to 75 years')
+INSERT INTO PRODUCT VALUES('AV-SB-02','BIRDS','Finch','<image src="../images/bird1.gif">Great stress reliever')
+INSERT INTO PRODUCT VALUES('FI-FW-01','FISH','Koi','<image src="../images/fish3.gif">Fresh Water fish from Japan')
+INSERT INTO PRODUCT VALUES('FI-FW-02','FISH','Goldfish','<image src="../images/fish2.gif">Fresh Water fish from China')
+INSERT INTO PRODUCT VALUES('FI-SW-01','FISH','Angelfish','<image src="../images/fish1.jpg">Salt Water fish from Australia')
+INSERT INTO PRODUCT VALUES('FI-SW-02','FISH','Tiger Shark','<image src="../images/fish4.gif">Salt Water fish from Australia')
+INSERT INTO PRODUCT VALUES('FL-DLH-02','CATS','Persian','<image src="../images/cat1.gif">Friendly house cat, doubles as a princess')
+INSERT INTO PRODUCT VALUES('FL-DSH-01','CATS','Manx','<image src="../images/cat3.gif">Great for reducing mouse populations')
+INSERT INTO PRODUCT VALUES('K9-BD-01','DOGS','Bulldog','<image src="../images/dog2.gif">Friendly dog from England')
+INSERT INTO PRODUCT VALUES('K9-CW-01','DOGS','Chihuahua','<image src="../images/dog4.gif">Great companion dog')
+INSERT INTO PRODUCT VALUES('K9-DL-01','DOGS','Dalmation','<image src="../images/dog5.gif">Great dog for a Fire Station')
+INSERT INTO PRODUCT VALUES('K9-PO-02','DOGS','Poodle','<image src="../images/dog6.gif">Cute dog from France')
+INSERT INTO PRODUCT VALUES('K9-RT-01','DOGS','Golden Retriever','<image src="../images/dog1.gif">Great family dog')
+INSERT INTO PRODUCT VALUES('K9-RT-02','DOGS','Labrador Retriever','<image src="../images/dog5.gif">Great hunting dog')
+INSERT INTO PRODUCT VALUES('RP-LI-02','REPTILES','Iguana','<image src="../images/lizard2.gif">Friendly green friend')
+INSERT INTO PRODUCT VALUES('RP-SN-01','REPTILES','Rattlesnake','<image src="../images/lizard3.gif">Doubles as a watch dog')
+INSERT INTO ITEM VALUES('EST-1','FI-SW-01',16.50,10.00,1,'P','Large',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-10','K9-DL-01',18.50,12.00,1,'P','Spotted Adult Female',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-11','RP-SN-01',18.50,12.00,1,'P','Venomless',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-12','RP-SN-01',18.50,12.00,1,'P','Rattleless',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-13','RP-LI-02',18.50,12.00,1,'P','Green Adult',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-14','FL-DSH-01',58.50,12.00,1,'P','Tailless',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-15','FL-DSH-01',23.50,12.00,1,'P','With tail',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-16','FL-DLH-02',93.50,12.00,1,'P','Adult Female',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-17','FL-DLH-02',93.50,12.00,1,'P','Adult Male',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-18','AV-CB-01',193.50,92.00,1,'P','Adult Male',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-19','AV-SB-02',15.50,2.00,1,'P','Adult Male',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-2','FI-SW-01',16.50,10.00,1,'P','Small',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-20','FI-FW-02',5.50,2.00,1,'P','Adult Male',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-21','FI-FW-02',5.29,1.00,1,'P','Adult Female',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-22','K9-RT-02',135.50,100.00,1,'P','Adult Male',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-23','K9-RT-02',145.49,100.00,1,'P','Adult Female',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-24','K9-RT-02',255.50,92.00,1,'P','Adult Male',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-25','K9-RT-02',325.29,90.00,1,'P','Adult Female',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-26','K9-CW-01',125.50,92.00,1,'P','Adult Male',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-27','K9-CW-01',155.29,90.00,1,'P','Adult Female',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-28','K9-RT-01',155.29,90.00,1,'P','Adult Female',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-3','FI-SW-02',18.50,12.00,1,'P','Toothless',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-4','FI-FW-01',18.50,12.00,1,'P','Spotted',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-5','FI-FW-01',18.50,12.00,1,'P','Spotless',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-6','K9-BD-01',18.50,12.00,1,'P','Male Adult',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-7','K9-BD-01',18.50,12.00,1,'P','Female Puppy',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-8','K9-PO-02',18.50,12.00,1,'P','Male Puppy',NULL,NULL,NULL,NULL)
+INSERT INTO ITEM VALUES('EST-9','K9-DL-01',18.50,12.00,1,'P','Spotless Male Puppy',NULL,NULL,NULL,NULL)
+INSERT INTO INVENTORY VALUES('EST-1',10000)
+INSERT INTO INVENTORY VALUES('EST-10',10000)
+INSERT INTO INVENTORY VALUES('EST-11',10000)
+INSERT INTO INVENTORY VALUES('EST-12',10000)
+INSERT INTO INVENTORY VALUES('EST-13',10000)
+INSERT INTO INVENTORY VALUES('EST-14',10000)
+INSERT INTO INVENTORY VALUES('EST-15',10000)
+INSERT INTO INVENTORY VALUES('EST-16',10000)
+INSERT INTO INVENTORY VALUES('EST-17',10000)
+INSERT INTO INVENTORY VALUES('EST-18',-4990000)
+INSERT INTO INVENTORY VALUES('EST-19',10000)
+INSERT INTO INVENTORY VALUES('EST-2',10000)
+INSERT INTO INVENTORY VALUES('EST-20',10000)
+INSERT INTO INVENTORY VALUES('EST-21',10000)
+INSERT INTO INVENTORY VALUES('EST-22',10000)
+INSERT INTO INVENTORY VALUES('EST-23',10000)
+INSERT INTO INVENTORY VALUES('EST-24',10000)
+INSERT INTO INVENTORY VALUES('EST-25',10000)
+INSERT INTO INVENTORY VALUES('EST-26',9999)
+INSERT INTO INVENTORY VALUES('EST-27',10000)
+INSERT INTO INVENTORY VALUES('EST-28',10000)
+INSERT INTO INVENTORY VALUES('EST-3',10000)
+INSERT INTO INVENTORY VALUES('EST-4',10000)
+INSERT INTO INVENTORY VALUES('EST-5',10000)
+INSERT INTO INVENTORY VALUES('EST-6',10000)
+INSERT INTO INVENTORY VALUES('EST-7',10000)
+INSERT INTO INVENTORY VALUES('EST-8',10000)
+INSERT INTO INVENTORY VALUES('EST-9',10000)
+INSERT INTO SEQUENCE VALUES('linenum',1000)
+INSERT INTO SEQUENCE VALUES('ordernum',1002)
2  jpetstore/db/hsqldb/manager.bat
@@ -0,0 +1,2 @@
+mvn -f %~dp0pom-manager.xml exec:java
+
2  jpetstore/db/hsqldb/manager.sh
@@ -0,0 +1,2 @@
+cd `dirname $0`
+mvn -e -f pom-manager.xml exec:java
45 jpetstore/db/hsqldb/pom-manager.xml
@@ -0,0 +1,45 @@
+<!-- POM to run manager.
+ Ideally, we won't need a separate pom-manager.xml. However, since the use of two different ids and phase
+ described at http://article.gmane.org/gmane.comp.java.maven-plugins.mojo.user/1307 doesn't seem to work
+ (the configuration element is ignored), we have to resort to using a separate file. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.springframework.samples.jpetstore</groupId>
+ <artifactId>org.springframework.samples.jpetstore.hsqldb.manager</artifactId>
+ <name>org.springframework.samples.jpetstore.hsqldb</name>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>1.8.0.7</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>org.hsqldb.util.DatabaseManager</mainClass>
+ <arguments>
+ <argument>--url</argument>
+ <argument>jdbc:hsqldb:hsql://localhost:9002</argument>
+ </arguments>
+
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
44 jpetstore/db/hsqldb/pom.xml
@@ -0,0 +1,44 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.springframework.samples.jpetstore</groupId>
+ <artifactId>org.springframework.samples.jpetstore.hsqldb.server</artifactId>
+ <name>org.springframework.samples.jpetstore.hsqldb</name>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>1.8.0.7</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>org.hsqldb.Server</mainClass>
+ <arguments>
+ <argument>-database</argument>
+ <argument>${db.file}</argument>
+ <argument>-port</argument>
+ <argument>9002</argument>
+ <argument>-trace</argument>
+ <argument>true</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
1  jpetstore/db/hsqldb/server.bat
@@ -0,0 +1 @@
+mvn -f %~dp0pom.xml -Ddb.file=%~dp0jpetstore exec:java
2  jpetstore/db/hsqldb/server.properties
@@ -0,0 +1,2 @@
+server.port=9002
+server.trace=true
2  jpetstore/db/hsqldb/server.sh
@@ -0,0 +1,2 @@
+cd `dirname $0`
+mvn -e -Ddb.file=./jpetstore exec:java
101 jpetstore/db/mysql/jpetstore-mysql-dataload.sql
@@ -0,0 +1,101 @@
+INSERT INTO sequence VALUES ('ordernum', 1000);
+INSERT INTO sequence VALUES ('linenum', 1000);
+
+INSERT INTO signon VALUES ('j2ee','j2ee');
+INSERT INTO signon VALUES ('ACID','ACID');
+
+INSERT INTO account VALUES ('j2ee','yourname@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+INSERT INTO account VALUES ('ACID','acid@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+
+INSERT INTO profile VALUES ('j2ee','english','DOGS','1','1');
+INSERT INTO profile VALUES ('ACID','english','CATS','1','1');
+
+INSERT INTO bannerdata VALUES ('FISH','<image src="../images/banner_fish.gif">');
+INSERT INTO bannerdata VALUES ('CATS','<image src="../images/banner_cats.gif">');
+INSERT INTO bannerdata VALUES ('DOGS','<image src="../images/banner_dogs.gif">');
+INSERT INTO bannerdata VALUES ('REPTILES','<image src="../images/banner_reptiles.gif">');
+INSERT INTO bannerdata VALUES ('BIRDS','<image src="../images/banner_birds.gif">');
+
+INSERT INTO category VALUES ('FISH','Fish','<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>');
+INSERT INTO category VALUES ('DOGS','Dogs','<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>');
+INSERT INTO category VALUES ('REPTILES','Reptiles','<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>');
+INSERT INTO category VALUES ('CATS','Cats','<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>');
+INSERT INTO category VALUES ('BIRDS','Birds','<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>');
+
+INSERT INTO product VALUES ('FI-SW-01','FISH','Angelfish','<image src="../images/fish1.jpg">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-SW-02','FISH','Tiger Shark','<image src="../images/fish4.gif">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-FW-01','FISH', 'Koi','<image src="../images/fish3.gif">Fresh Water fish from Japan');
+INSERT INTO product VALUES ('FI-FW-02','FISH', 'Goldfish','<image src="../images/fish2.gif">Fresh Water fish from China');
+INSERT INTO product VALUES ('K9-BD-01','DOGS','Bulldog','<image src="../images/dog2.gif">Friendly dog from England');
+INSERT INTO product VALUES ('K9-PO-02','DOGS','Poodle','<image src="../images/dog6.gif">Cute dog from France');
+INSERT INTO product VALUES ('K9-DL-01','DOGS', 'Dalmation','<image src="../images/dog5.gif">Great dog for a Fire Station');
+INSERT INTO product VALUES ('K9-RT-01','DOGS', 'Golden Retriever','<image src="../images/dog1.gif">Great family dog');
+INSERT INTO product VALUES ('K9-RT-02','DOGS', 'Labrador Retriever','<image src="../images/dog5.gif">Great hunting dog');
+INSERT INTO product VALUES ('K9-CW-01','DOGS', 'Chihuahua','<image src="../images/dog4.gif">Great companion dog');
+INSERT INTO product VALUES ('RP-SN-01','REPTILES','Rattlesnake','<image src="../images/lizard3.gif">Doubles as a watch dog');
+INSERT INTO product VALUES ('RP-LI-02','REPTILES','Iguana','<image src="../images/lizard2.gif">Friendly green friend');
+INSERT INTO product VALUES ('FL-DSH-01','CATS','Manx','<image src="../images/cat3.gif">Great for reducing mouse populations');
+INSERT INTO product VALUES ('FL-DLH-02','CATS','Persian','<image src="../images/cat1.gif">Friendly house cat, doubles as a princess');
+INSERT INTO product VALUES ('AV-CB-01','BIRDS','Amazon Parrot','<image src="../images/bird4.gif">Great companion for up to 75 years');
+INSERT INTO product VALUES ('AV-SB-02','BIRDS','Finch','<image src="../images/bird1.gif">Great stress reliever');
+
+INSERT INTO supplier VALUES (1,'XYZ Pets','AC','600 Avon Way','','Los Angeles','CA','94024','212-947-0797');
+INSERT INTO supplier VALUES (2,'ABC Pets','AC','700 Abalone Way','','San Francisco ','CA','94024','415-947-0797');
+
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-1','FI-SW-01',16.50,10.00,1,'P','Large');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-2','FI-SW-01',16.50,10.00,1,'P','Small');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-3','FI-SW-02',18.50,12.00,1,'P','Toothless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-4','FI-FW-01',18.50,12.00,1,'P','Spotted');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-5','FI-FW-01',18.50,12.00,1,'P','Spotless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-6','K9-BD-01',18.50,12.00,1,'P','Male Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-7','K9-BD-01',18.50,12.00,1,'P','Female Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-8','K9-PO-02',18.50,12.00,1,'P','Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-9','K9-DL-01',18.50,12.00,1,'P','Spotless Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-10','K9-DL-01',18.50,12.00,1,'P','Spotted Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-11','RP-SN-01',18.50,12.00,1,'P','Venomless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-12','RP-SN-01',18.50,12.00,1,'P','Rattleless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-13','RP-LI-02',18.50,12.00,1,'P','Green Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-14','FL-DSH-01',58.50,12.00,1,'P','Tailless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-15','FL-DSH-01',23.50,12.00,1,'P','With tail');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-16','FL-DLH-02',93.50,12.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-17','FL-DLH-02',93.50,12.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-18','AV-CB-01',193.50,92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-19','AV-SB-02',15.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-20','FI-FW-02',5.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-21','FI-FW-02',5.29, 1.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-22','K9-RT-02',135.50, 100.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-23','K9-RT-02',145.49, 100.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-24','K9-RT-02',255.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-25','K9-RT-02',325.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-26','K9-CW-01',125.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-27','K9-CW-01',155.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-28','K9-RT-01',155.29, 90.00,1,'P','Adult Female');
+
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-1',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-2',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-3',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-4',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-5',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-6',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-7',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-8',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-9',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-10',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-11',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-12',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-13',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-14',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-15',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-16',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-17',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-18',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-19',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-20',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-21',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-22',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-23',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-24',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-25',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-26',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-27',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-28',10000);
211 jpetstore/db/mysql/jpetstore-mysql-schema.sql
@@ -0,0 +1,211 @@
+use jpetstore;
+
+create table if not exists supplier (
+ suppid int not null,
+ name varchar(80) null,
+ status varchar(2) not null,
+ addr1 varchar(80) null,
+ addr2 varchar(80) null,
+ city varchar(80) null,
+ state varchar(80) null,
+ zip varchar(5) null,
+ phone varchar(80) null,
+primary key (suppid))
+type=innodb
+min_rows=0
+max_rows=1000
+pack_keys=default
+row_format=default
+comment='cadastro de fornecedores';
+
+create table if not exists signon (
+ username varchar(25) not null,
+ password varchar(25) not null,
+primary key (username))
+type=innodb
+min_rows=0
+max_rows=1000
+pack_keys=default
+row_format=default
+comment='cadastro de usuários';
+
+create table if not exists account (
+ userid varchar(80) not null,
+ email varchar(80) not null,
+ firstname varchar(80) not null,
+ lastname varchar(80) not null,
+ status varchar(2) null,
+ addr1 varchar(80) not null,
+ addr2 varchar(40) null,
+ city varchar(80) not null,
+ state varchar(80) not null,
+ zip varchar(20) not null,
+ country varchar(20) not null,
+ phone varchar(80) not null,
+primary key (userid) )
+type=innodb
+min_rows=0
+max_rows=1000
+pack_keys=default
+row_format=default
+comment='cadastro de contas';
+
+create table if not exists profile (
+ userid varchar(80) not null,
+ langpref varchar(80) not null,
+ favcategory varchar(30),
+ mylistopt bool,
+ banneropt bool,
+primary key (userid) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='cadastro de perfis';
+
+create table if not exists bannerdata (
+ favcategory varchar(80) not null,
+ bannername varchar(255) null,
+primary key (favcategory))
+type=innodb
+pack_keys=default
+row_format=default
+comment='banner data';
+
+create table if not exists orders (
+ orderid int not null,
+ userid varchar(80) not null,
+ orderdate date not null,
+ shipaddr1 varchar(80) not null,
+ shipaddr2 varchar(80) null,
+ shipcity varchar(80) not null,
+ shipstate varchar(80) not null,
+ shipzip varchar(20) not null,
+ shipcountry varchar(20) not null,
+ billaddr1 varchar(80) not null,
+ billaddr2 varchar(80) null,
+ billcity varchar(80) not null,
+ billstate varchar(80) not null,
+ billzip varchar(20) not null,
+ billcountry varchar(20) not null,
+ courier varchar(80) not null,
+ totalprice decimal(10,2) not null,
+ billtofirstname varchar(80) not null,
+ billtolastname varchar(80) not null,
+ shiptofirstname varchar(80) not null,
+ shiptolastname varchar(80) not null,
+ creditcard varchar(80) not null,
+ exprdate varchar(7) not null,
+ cardtype varchar(80) not null,
+ locale varchar(80) not null,
+primary key (orderid) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='cadastro de pedidos';
+
+create table if not exists orderstatus (
+ orderid int not null,
+ linenum int not null,
+ timestamp date not null,
+ status varchar(2) not null,
+primary key (orderid, linenum) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='status de pedidos';
+
+create table if not exists lineitem (
+ orderid int not null,
+ linenum int not null,
+ itemid varchar(10) not null,
+ quantity int not null,
+ unitprice decimal(10,2) not null,
+primary key (orderid, linenum) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='line item';
+
+create table if not exists category (
+ catid varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+primary key (catid) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='categorias';
+
+create table if not exists product (
+ productid varchar(10) not null,
+ category varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+primary key (productid) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='categorias';
+
+alter table product
+ add index productcat(category);
+
+alter table product
+ add index productname(name);
+
+alter table category
+ add index ixcategoryproduct(catid);
+
+alter table product add foreign key (category)
+ references category(catid)
+ on delete restrict
+ on update restrict;
+
+create table if not exists item (
+ itemid varchar(10) not null,
+ productid varchar(10) not null,
+ listprice decimal(10,2) null,
+ unitcost decimal(10,2) null,
+ supplier int null,
+ status varchar(2) null,
+ attr1 varchar(80) null,
+ attr2 varchar(80) null,
+ attr3 varchar(80) null,
+ attr4 varchar(80) null,
+ attr5 varchar(80) null,
+primary key (itemid) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='itens';
+
+alter table item
+ add index itemprod(productid);
+
+alter table item add foreign key (productid)
+ references product(productid)
+ on delete restrict
+ on update restrict;
+
+alter table item add foreign key (supplier)
+ references supplier(suppid)
+ on delete restrict
+ on update restrict;
+
+create table if not exists inventory (
+ itemid varchar(10) not null,
+ qty int not null,
+primary key (itemid) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='inventory';
+
+create table if not exists sequence (
+ name varchar(30) not null,
+ nextid int not null,
+primary key (name) )
+type=innodb
+pack_keys=default
+row_format=default
+comment='inventory';
101 jpetstore/db/oracle/jpetstore-oracle-dataload.sql
@@ -0,0 +1,101 @@
+INSERT INTO sequence VALUES ('ordernum', 1000);
+INSERT INTO sequence VALUES ('linenum', 1000);
+
+INSERT INTO signon VALUES ('j2ee','j2ee');
+INSERT INTO signon VALUES ('ACID','ACID');
+
+INSERT INTO account VALUES ('j2ee','yourname@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+INSERT INTO account VALUES ('ACID','acid@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+
+INSERT INTO profile VALUES ('j2ee','english','DOGS','1','1');
+INSERT INTO profile VALUES ('ACID','english','CATS','1','1');
+
+INSERT INTO bannerdata VALUES ('FISH','<image src="../images/banner_fish.gif">');
+INSERT INTO bannerdata VALUES ('CATS','<image src="../images/banner_cats.gif">');
+INSERT INTO bannerdata VALUES ('DOGS','<image src="../images/banner_dogs.gif">');
+INSERT INTO bannerdata VALUES ('REPTILES','<image src="../images/banner_reptiles.gif">');
+INSERT INTO bannerdata VALUES ('BIRDS','<image src="../images/banner_birds.gif">');
+
+INSERT INTO category VALUES ('FISH','Fish','<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>');
+INSERT INTO category VALUES ('DOGS','Dogs','<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>');
+INSERT INTO category VALUES ('REPTILES','Reptiles','<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>');
+INSERT INTO category VALUES ('CATS','Cats','<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>');
+INSERT INTO category VALUES ('BIRDS','Birds','<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>');
+
+INSERT INTO product VALUES ('FI-SW-01','FISH','Angelfish','<image src="../images/fish1.jpg">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-SW-02','FISH','Tiger Shark','<image src="../images/fish4.gif">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-FW-01','FISH', 'Koi','<image src="../images/fish3.gif">Fresh Water fish from Japan');
+INSERT INTO product VALUES ('FI-FW-02','FISH', 'Goldfish','<image src="../images/fish2.gif">Fresh Water fish from China');
+INSERT INTO product VALUES ('K9-BD-01','DOGS','Bulldog','<image src="../images/dog2.gif">Friendly dog from England');
+INSERT INTO product VALUES ('K9-PO-02','DOGS','Poodle','<image src="../images/dog6.gif">Cute dog from France');
+INSERT INTO product VALUES ('K9-DL-01','DOGS', 'Dalmation','<image src="../images/dog5.gif">Great dog for a Fire Station');
+INSERT INTO product VALUES ('K9-RT-01','DOGS', 'Golden Retriever','<image src="../images/dog1.gif">Great family dog');
+INSERT INTO product VALUES ('K9-RT-02','DOGS', 'Labrador Retriever','<image src="../images/dog5.gif">Great hunting dog');
+INSERT INTO product VALUES ('K9-CW-01','DOGS', 'Chihuahua','<image src="../images/dog4.gif">Great companion dog');
+INSERT INTO product VALUES ('RP-SN-01','REPTILES','Rattlesnake','<image src="../images/lizard3.gif">Doubles as a watch dog');
+INSERT INTO product VALUES ('RP-LI-02','REPTILES','Iguana','<image src="../images/lizard2.gif">Friendly green friend');
+INSERT INTO product VALUES ('FL-DSH-01','CATS','Manx','<image src="../images/cat3.gif">Great for reducing mouse populations');
+INSERT INTO product VALUES ('FL-DLH-02','CATS','Persian','<image src="../images/cat1.gif">Friendly house cat, doubles as a princess');
+INSERT INTO product VALUES ('AV-CB-01','BIRDS','Amazon Parrot','<image src="../images/bird4.gif">Great companion for up to 75 years');
+INSERT INTO product VALUES ('AV-SB-02','BIRDS','Finch','<image src="../images/bird1.gif">Great stress reliever');
+
+INSERT INTO supplier VALUES (1,'XYZ Pets','AC','600 Avon Way','','Los Angeles','CA','94024','212-947-0797');
+INSERT INTO supplier VALUES (2,'ABC Pets','AC','700 Abalone Way','','San Francisco ','CA','94024','415-947-0797');
+
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-1','FI-SW-01',16.50,10.00,1,'P','Large');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-2','FI-SW-01',16.50,10.00,1,'P','Small');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-3','FI-SW-02',18.50,12.00,1,'P','Toothless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-4','FI-FW-01',18.50,12.00,1,'P','Spotted');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-5','FI-FW-01',18.50,12.00,1,'P','Spotless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-6','K9-BD-01',18.50,12.00,1,'P','Male Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-7','K9-BD-01',18.50,12.00,1,'P','Female Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-8','K9-PO-02',18.50,12.00,1,'P','Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-9','K9-DL-01',18.50,12.00,1,'P','Spotless Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-10','K9-DL-01',18.50,12.00,1,'P','Spotted Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-11','RP-SN-01',18.50,12.00,1,'P','Venomless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-12','RP-SN-01',18.50,12.00,1,'P','Rattleless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-13','RP-LI-02',18.50,12.00,1,'P','Green Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-14','FL-DSH-01',58.50,12.00,1,'P','Tailless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-15','FL-DSH-01',23.50,12.00,1,'P','With tail');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-16','FL-DLH-02',93.50,12.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-17','FL-DLH-02',93.50,12.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-18','AV-CB-01',193.50,92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-19','AV-SB-02',15.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-20','FI-FW-02',5.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-21','FI-FW-02',5.29, 1.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-22','K9-RT-02',135.50, 100.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-23','K9-RT-02',145.49, 100.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-24','K9-RT-02',255.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-25','K9-RT-02',325.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-26','K9-CW-01',125.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-27','K9-CW-01',155.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-28','K9-RT-01',155.29, 90.00,1,'P','Adult Female');
+
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-1',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-2',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-3',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-4',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-5',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-6',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-7',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-8',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-9',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-10',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-11',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-12',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-13',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-14',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-15',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-16',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-17',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-18',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-19',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-20',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-21',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-22',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-23',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-24',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-25',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-26',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-27',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-28',10000);
136 jpetstore/db/oracle/jpetstore-oracle-schema-xa1.sql
@@ -0,0 +1,136 @@
+drop index productCat;
+drop index productName;
+drop index itemProd;
+
+drop table bannerdata;
+drop table profile;
+drop table signon;
+drop table inventory;
+drop table item;
+drop table product;
+drop table account;
+drop table category;
+drop table supplier;
+drop table sequence;
+
+create table supplier (
+ suppid int not null,
+ name varchar(80) null,
+ status varchar(2) not null,
+ addr1 varchar(80) null,
+ addr2 varchar(80) null,
+ city varchar(80) null,
+ state varchar(80) null,
+ zip varchar(5) null,
+ phone varchar(80) null,
+ constraint pk_supplier primary key (suppid)
+);
+
+grant all on supplier to public;
+
+create table signon (
+ username varchar(25) not null,
+ password varchar(25) not null,
+ constraint pk_signon primary key (username)
+);
+
+grant all on signon to public;
+
+create table account (
+ userid varchar(80) not null,
+ email varchar(80) not null,
+ firstname varchar(80) not null,
+ lastname varchar(80) not null,
+ status varchar(2) null,
+ addr1 varchar(80) not null,
+ addr2 varchar(40) null,
+ city varchar(80) not null,
+ state varchar(80) not null,
+ zip varchar(20) not null,
+ country varchar(20) not null,
+ phone varchar(80) not null,
+ constraint pk_account primary key (userid)
+);
+
+grant all on account to public;
+
+create table profile (
+ userid varchar(80) not null,
+ langpref varchar(80) not null,
+ favcategory varchar(30),
+ mylistopt int,
+ banneropt int,
+ constraint pk_profile primary key (userid)
+);
+
+grant all on profile to public;
+
+
+create table bannerdata (
+ favcategory varchar(80) not null,
+ bannername varchar(255) null,
+ constraint pk_bannerdata primary key (favcategory)
+);
+
+grant all on bannerdata to public;
+
+create table category (
+ catid varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_category primary key (catid)
+);
+
+grant all on category to public;
+
+create table product (
+ productid varchar(10) not null,
+ category varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_product primary key (productid),
+ constraint fk_product_1 foreign key (category)
+ references category (catid)
+);
+
+grant all on product to public;
+create index productCat on product (category);
+create index productName on product (name);
+
+create table item (
+ itemid varchar(10) not null,
+ productid varchar(10) not null,
+ listprice decimal(10,2) null,
+ unitcost decimal(10,2) null,
+ supplier int null,
+ status varchar(2) null,
+ attr1 varchar(80) null,
+ attr2 varchar(80) null,
+ attr3 varchar(80) null,
+ attr4 varchar(80) null,
+ attr5 varchar(80) null,
+ constraint pk_item primary key (itemid),
+ constraint fk_item_1 foreign key (productid)
+ references product (productid),
+ constraint fk_item_2 foreign key (supplier)
+ references supplier (suppid)
+);
+
+grant all on item to public;
+create index itemProd on item (productid);
+
+create table inventory (
+ itemid varchar(10) not null,
+ qty int not null,
+ constraint pk_inventory primary key (itemid)
+);
+
+grant all on inventory to public;
+
+create table sequence (
+ name varchar(30) not null,
+ nextid int not null,
+ constraint pk_sequence primary key (name)
+);
+
+grant all on sequence to public;
64 jpetstore/db/oracle/jpetstore-oracle-schema-xa2.sql
@@ -0,0 +1,64 @@
+drop sequence linenum;
+drop sequence ordernum;
+
+drop table lineitem;
+drop table orderstatus;
+drop table orders;
+
+create table orders (
+ orderid int not null,
+ userid varchar(80) not null,
+ orderdate date not null,
+ shipaddr1 varchar(80) not null,
+ shipaddr2 varchar(80) null,
+ shipcity varchar(80) not null,
+ shipstate varchar(80) not null,
+ shipzip varchar(20) not null,
+ shipcountry varchar(20) not null,
+ billaddr1 varchar(80) not null,
+ billaddr2 varchar(80) null,
+ billcity varchar(80) not null,
+ billstate varchar(80) not null,
+ billzip varchar(20) not null,
+ billcountry varchar(20) not null,
+ courier varchar(80) not null,
+ totalprice number(10,2) not null,
+ billtofirstname varchar(80) not null,
+ billtolastname varchar(80) not null,
+ shiptofirstname varchar(80) not null,
+ shiptolastname varchar(80) not null,
+ creditcard varchar(80) not null,
+ exprdate varchar(7) not null,
+ cardtype varchar(80) not null,
+ locale varchar(80) not null,
+ constraint pk_orders primary key (orderid)
+);
+
+grant all on orders to public;
+create sequence ordernum increment by 1 cache 10000;
+
+create table orderstatus (
+ orderid int not null,
+ linenum int not null,
+ timestamp date not null,
+ status varchar(2) not null,
+ constraint pk_orderstatus primary key (orderid, linenum),
+ constraint fk_orderstatus_1 foreign key (orderid)
+ references orders (orderid)
+);
+
+grant all on orderstatus to public;
+create sequence linenum increment by 1 cache 10000;
+
+create table lineitem (
+ orderid int not null,
+ linenum int not null,
+ itemid varchar(10) not null,
+ quantity int not null,
+ unitprice number(10,2) not null,
+ constraint pk_lineitem primary key (orderid, linenum),
+ constraint fk_lineitem_1 foreign key (orderid)
+ references orders (orderid)
+);
+
+grant all on lineitem to public;
203 jpetstore/db/oracle/jpetstore-oracle-schema.sql
@@ -0,0 +1,203 @@
+drop sequence linenum;
+drop sequence ordernum;
+
+drop index productCat;
+drop index productName;
+drop index itemProd;
+
+drop table lineitem;
+drop table orderstatus;
+drop table orders;
+drop table bannerdata;
+drop table profile;
+drop table signon;
+drop table inventory;
+drop table item;
+drop table product;
+drop table account;
+drop table category;
+drop table supplier;
+drop table sequence;
+
+create table supplier (
+ suppid int not null,
+ name varchar(80) null,
+ status varchar(2) not null,
+ addr1 varchar(80) null,
+ addr2 varchar(80) null,
+ city varchar(80) null,
+ state varchar(80) null,
+ zip varchar(5) null,
+ phone varchar(80) null,
+ constraint pk_supplier primary key (suppid)
+);
+
+grant all on supplier to public;
+
+create table signon (
+ username varchar(25) not null,
+ password varchar(25) not null,
+ constraint pk_signon primary key (username)
+);
+
+grant all on signon to public;
+
+create table account (
+ userid varchar(80) not null,
+ email varchar(80) not null,
+ firstname varchar(80) not null,
+ lastname varchar(80) not null,
+ status varchar(2) null,
+ addr1 varchar(80) not null,
+ addr2 varchar(40) null,
+ city varchar(80) not null,
+ state varchar(80) not null,
+ zip varchar(20) not null,
+ country varchar(20) not null,
+ phone varchar(80) not null,
+ constraint pk_account primary key (userid)
+);
+
+grant all on account to public;
+
+create table profile (
+ userid varchar(80) not null,
+ langpref varchar(80) not null,
+ favcategory varchar(30),
+ mylistopt int,
+ banneropt int,
+ constraint pk_profile primary key (userid)
+);
+
+grant all on profile to public;
+
+
+create table bannerdata (
+ favcategory varchar(80) not null,
+ bannername varchar(255) null,
+ constraint pk_bannerdata primary key (favcategory)
+);
+
+grant all on bannerdata to public;
+
+create table orders (
+ orderid int not null,
+ userid varchar(80) not null,
+ orderdate date not null,
+ shipaddr1 varchar(80) not null,
+ shipaddr2 varchar(80) null,
+ shipcity varchar(80) not null,
+ shipstate varchar(80) not null,
+ shipzip varchar(20) not null,
+ shipcountry varchar(20) not null,
+ billaddr1 varchar(80) not null,
+ billaddr2 varchar(80) null,
+ billcity varchar(80) not null,
+ billstate varchar(80) not null,
+ billzip varchar(20) not null,
+ billcountry varchar(20) not null,
+ courier varchar(80) not null,
+ totalprice number(10,2) not null,
+ billtofirstname varchar(80) not null,
+ billtolastname varchar(80) not null,
+ shiptofirstname varchar(80) not null,
+ shiptolastname varchar(80) not null,
+ creditcard varchar(80) not null,
+ exprdate varchar(7) not null,
+ cardtype varchar(80) not null,
+ locale varchar(80) not null,
+ constraint pk_orders primary key (orderid),
+ constraint fk_orders_1 foreign key (userid)
+ references account (userid)
+);
+
+create sequence ordernum increment by 1 cache 10000;
+
+grant all on orders to public;
+
+create table orderstatus (
+ orderid int not null,
+ linenum int not null,
+ timestamp date not null,
+ status varchar(2) not null,
+ constraint pk_orderstatus primary key (orderid, linenum),
+ constraint fk_orderstatus_1 foreign key (orderid)
+ references orders (orderid)
+);
+
+grant all on orderstatus to public;
+create sequence linenum increment by 1 cache 10000;
+
+create table category (
+ catid varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_category primary key (catid)
+);
+
+grant all on category to public;
+
+create table product (
+ productid varchar(10) not null,
+ category varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_product primary key (productid),
+ constraint fk_product_1 foreign key (category)
+ references category (catid)
+);
+
+grant all on product to public;
+create index productCat on product (category);
+create index productName on product (name);
+
+create table item (
+ itemid varchar(10) not null,
+ productid varchar(10) not null,
+ listprice decimal(10,2) null,
+ unitcost decimal(10,2) null,
+ supplier int null,
+ status varchar(2) null,
+ attr1 varchar(80) null,
+ attr2 varchar(80) null,
+ attr3 varchar(80) null,
+ attr4 varchar(80) null,
+ attr5 varchar(80) null,
+ constraint pk_item primary key (itemid),
+ constraint fk_item_1 foreign key (productid)
+ references product (productid),
+ constraint fk_item_2 foreign key (supplier)
+ references supplier (suppid)
+);
+
+grant all on item to public;
+create index itemProd on item (productid);
+
+create table inventory (
+ itemid varchar(10) not null,
+ qty int not null,
+ constraint pk_inventory primary key (itemid)
+);
+
+grant all on inventory to public;
+
+create table lineitem (
+ orderid int not null,
+ linenum int not null,
+ itemid varchar(10) not null,
+ quantity int not null,
+ unitprice number(10,2) not null,
+ constraint pk_lineitem primary key (orderid, linenum),
+ constraint fk_lineitem_1 foreign key (orderid)
+ references orders (orderid)
+);
+
+grant all on lineitem to public;
+
+create table sequence (
+ name varchar(30) not null,
+ nextid int not null,
+ constraint pk_sequence primary key (name)
+);
+
+grant all on sequence to public;
101 jpetstore/db/postgres/jpetstore-postgres-dataload.sql
@@ -0,0 +1,101 @@
+INSERT INTO sequence VALUES ('ordernum', 1000);
+INSERT INTO sequence VALUES ('linenum', 1000);
+
+INSERT INTO signon VALUES ('j2ee','j2ee');
+INSERT INTO signon VALUES ('ACID','ACID');
+
+INSERT INTO account VALUES ('j2ee','yourname@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+INSERT INTO account VALUES ('ACID','acid@yourdomain.com','ABC', 'XYX', 'OK', '901 San Antonio Road', 'MS UCUP02-206', 'Palo Alto', 'CA', '94303', 'USA', '555-555-5555');
+
+INSERT INTO profile VALUES ('j2ee','english','DOGS',true,true);
+INSERT INTO profile VALUES ('ACID','english','CATS',true,true);
+
+INSERT INTO bannerdata VALUES ('FISH','<image src="../images/banner_fish.gif">');
+INSERT INTO bannerdata VALUES ('CATS','<image src="../images/banner_cats.gif">');
+INSERT INTO bannerdata VALUES ('DOGS','<image src="../images/banner_dogs.gif">');
+INSERT INTO bannerdata VALUES ('REPTILES','<image src="../images/banner_reptiles.gif">');
+INSERT INTO bannerdata VALUES ('BIRDS','<image src="../images/banner_birds.gif">');
+
+INSERT INTO category VALUES ('FISH','Fish','<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>');
+INSERT INTO category VALUES ('DOGS','Dogs','<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>');
+INSERT INTO category VALUES ('REPTILES','Reptiles','<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>');
+INSERT INTO category VALUES ('CATS','Cats','<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>');
+INSERT INTO category VALUES ('BIRDS','Birds','<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>');
+
+INSERT INTO product VALUES ('FI-SW-01','FISH','Angelfish','<image src="../images/fish1.jpg">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-SW-02','FISH','Tiger Shark','<image src="../images/fish4.gif">Salt Water fish from Australia');
+INSERT INTO product VALUES ('FI-FW-01','FISH', 'Koi','<image src="../images/fish3.gif">Fresh Water fish from Japan');
+INSERT INTO product VALUES ('FI-FW-02','FISH', 'Goldfish','<image src="../images/fish2.gif">Fresh Water fish from China');
+INSERT INTO product VALUES ('K9-BD-01','DOGS','Bulldog','<image src="../images/dog2.gif">Friendly dog from England');
+INSERT INTO product VALUES ('K9-PO-02','DOGS','Poodle','<image src="../images/dog6.gif">Cute dog from France');
+INSERT INTO product VALUES ('K9-DL-01','DOGS', 'Dalmation','<image src="../images/dog5.gif">Great dog for a Fire Station');
+INSERT INTO product VALUES ('K9-RT-01','DOGS', 'Golden Retriever','<image src="../images/dog1.gif">Great family dog');
+INSERT INTO product VALUES ('K9-RT-02','DOGS', 'Labrador Retriever','<image src="../images/dog5.gif">Great hunting dog');
+INSERT INTO product VALUES ('K9-CW-01','DOGS', 'Chihuahua','<image src="../images/dog4.gif">Great companion dog');
+INSERT INTO product VALUES ('RP-SN-01','REPTILES','Rattlesnake','<image src="../images/lizard3.gif">Doubles as a watch dog');
+INSERT INTO product VALUES ('RP-LI-02','REPTILES','Iguana','<image src="../images/lizard2.gif">Friendly green friend');
+INSERT INTO product VALUES ('FL-DSH-01','CATS','Manx','<image src="../images/cat3.gif">Great for reducing mouse populations');
+INSERT INTO product VALUES ('FL-DLH-02','CATS','Persian','<image src="../images/cat1.gif">Friendly house cat, doubles as a princess');
+INSERT INTO product VALUES ('AV-CB-01','BIRDS','Amazon Parrot','<image src="../images/bird4.gif">Great companion for up to 75 years');
+INSERT INTO product VALUES ('AV-SB-02','BIRDS','Finch','<image src="../images/bird1.gif">Great stress reliever');
+
+INSERT INTO supplier VALUES (1,'XYZ Pets','AC','600 Avon Way','','Los Angeles','CA','94024','212-947-0797');
+INSERT INTO supplier VALUES (2,'ABC Pets','AC','700 Abalone Way','','San Francisco ','CA','94024','415-947-0797');
+
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-1','FI-SW-01',16.50,10.00,1,'P','Large');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-2','FI-SW-01',16.50,10.00,1,'P','Small');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-3','FI-SW-02',18.50,12.00,1,'P','Toothless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-4','FI-FW-01',18.50,12.00,1,'P','Spotted');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-5','FI-FW-01',18.50,12.00,1,'P','Spotless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-6','K9-BD-01',18.50,12.00,1,'P','Male Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-7','K9-BD-01',18.50,12.00,1,'P','Female Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-8','K9-PO-02',18.50,12.00,1,'P','Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-9','K9-DL-01',18.50,12.00,1,'P','Spotless Male Puppy');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-10','K9-DL-01',18.50,12.00,1,'P','Spotted Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-11','RP-SN-01',18.50,12.00,1,'P','Venomless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-12','RP-SN-01',18.50,12.00,1,'P','Rattleless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-13','RP-LI-02',18.50,12.00,1,'P','Green Adult');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-14','FL-DSH-01',58.50,12.00,1,'P','Tailless');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-15','FL-DSH-01',23.50,12.00,1,'P','With tail');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-16','FL-DLH-02',93.50,12.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-17','FL-DLH-02',93.50,12.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-18','AV-CB-01',193.50,92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-19','AV-SB-02',15.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-20','FI-FW-02',5.50, 2.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-21','FI-FW-02',5.29, 1.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-22','K9-RT-02',135.50, 100.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-23','K9-RT-02',145.49, 100.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-24','K9-RT-02',255.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-25','K9-RT-02',325.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-26','K9-CW-01',125.50, 92.00,1,'P','Adult Male');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-27','K9-CW-01',155.29, 90.00,1,'P','Adult Female');
+INSERT INTO item (itemid, productid, listprice, unitcost, supplier, status, attr1) VALUES ('EST-28','K9-RT-01',155.29, 90.00,1,'P','Adult Female');
+
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-1',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-2',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-3',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-4',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-5',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-6',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-7',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-8',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-9',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-10',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-11',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-12',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-13',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-14',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-15',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-16',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-17',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-18',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-19',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-20',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-21',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-22',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-23',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-24',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-25',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-26',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-27',10000);
+INSERT INTO inventory (itemid, qty ) VALUES ('EST-28',10000);
166 jpetstore/db/postgres/jpetstore-postgres-schema.sql
@@ -0,0 +1,166 @@
+drop index productCat;
+drop index productName;
+drop index itemProd;
+
+drop table lineitem;
+drop table orderstatus;
+drop table orders;
+drop table bannerdata;
+drop table profile;
+drop table signon;
+drop table inventory;
+drop table item;
+drop table product;
+drop table account;
+drop table category;
+drop table supplier;
+drop table sequence;
+
+create table supplier (
+ suppid int not null,
+ name varchar(80) null,
+ status varchar(2) not null,
+ addr1 varchar(80) null,
+ addr2 varchar(80) null,
+ city varchar(80) null,
+ state varchar(80) null,
+ zip varchar(5) null,
+ phone varchar(80) null,
+ constraint pk_supplier primary key (suppid)
+);
+
+create table signon (
+ username varchar(25) not null,
+ password varchar(25) not null,
+ constraint pk_signon primary key (username)
+);
+
+create table account (
+ userid varchar(80) not null,
+ email varchar(80) not null,
+ firstname varchar(80) not null,
+ lastname varchar(80) not null,
+ status varchar(2) null,
+ addr1 varchar(80) not null,
+ addr2 varchar(40) null,
+ city varchar(80) not null,
+ state varchar(80) not null,
+ zip varchar(20) not null,
+ country varchar(20) not null,
+ phone varchar(80) not null,
+ constraint pk_account primary key (userid)
+);
+
+create table profile (
+ userid varchar(80) not null,
+ langpref varchar(80) not null,
+ favcategory varchar(30),
+ mylistopt boolean,
+ banneropt boolean,
+ constraint pk_profile primary key (userid)
+);
+
+create table bannerdata (
+ favcategory varchar(80) not null,
+ bannername varchar(255) null,
+ constraint pk_bannerdata primary key (favcategory)
+);
+
+create table orders (
+ orderid int not null,
+ userid varchar(80) not null,
+ orderdate date not null,
+ shipaddr1 varchar(80) not null,
+ shipaddr2 varchar(80) null,
+ shipcity varchar(80) not null,
+ shipstate varchar(80) not null,
+ shipzip varchar(20) not null,
+ shipcountry varchar(20) not null,
+ billaddr1 varchar(80) not null,
+ billaddr2 varchar(80) null,
+ billcity varchar(80) not null,
+ billstate varchar(80) not null,
+ billzip varchar(20) not null,
+ billcountry varchar(20) not null,
+ courier varchar(80) not null,
+ totalprice decimal(10,2) not null,
+ billtofirstname varchar(80) not null,
+ billtolastname varchar(80) not null,
+ shiptofirstname varchar(80) not null,
+ shiptolastname varchar(80) not null,
+ creditcard varchar(80) not null,
+ exprdate varchar(7) not null,
+ cardtype varchar(80) not null,
+ locale varchar(80) not null,
+ constraint pk_orders primary key (orderid)
+);
+
+create table orderstatus (
+ orderid int not null,
+ linenum int not null,
+ timestamp date not null,
+ status varchar(2) not null,
+ constraint pk_orderstatus primary key (orderid, linenum)
+);
+
+create table lineitem (
+ orderid int not null,
+ linenum int not null,
+ itemid varchar(10) not null,
+ quantity int not null,
+ unitprice decimal(10,2) not null,
+ constraint pk_lineitem primary key (orderid, linenum)
+);
+
+create table category (
+ catid varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_category primary key (catid)
+);
+
+create table product (
+ productid varchar(10) not null,
+ category varchar(10) not null,
+ name varchar(80) null,
+ descn varchar(255) null,
+ constraint pk_product primary key (productid),
+ constraint fk_product_1 foreign key (category)
+ references category (catid)
+);
+
+create index productCat on product (category);
+create index productName on product (name);
+
+create table item (
+ itemid varchar(10) not null,
+ productid varchar(10) not null,
+ listprice decimal(10,