Permalink
Browse files

as7 examples

  • Loading branch information...
1 parent 9a1e4f4 commit 43b6625144536b861a96dc6dbbe7af713852627a @patriot1burke patriot1burke committed May 19, 2012
Showing with 9,402 additions and 6 deletions.
  1. +11 −1 jaxrs/distribution/assembly.xml
  2. +3 −5 jaxrs/distribution/pom.xml
  3. +21 −0 jaxrs/examples/oreilly-workbook-as7/README.html
  4. +14 −0 jaxrs/examples/oreilly-workbook-as7/README.txt
  5. BIN jaxrs/examples/oreilly-workbook-as7/cat.gif
  6. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex03_1/README.txt
  7. +94 −0 jaxrs/examples/oreilly-workbook-as7/ex03_1/pom.xml
  8. +76 −0 jaxrs/examples/oreilly-workbook-as7/ex03_1/src/main/java/com/restfully/shop/domain/Customer.java
  9. +133 −0 ...mples/oreilly-workbook-as7/ex03_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  10. +20 −0 ...es/oreilly-workbook-as7/ex03_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  11. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex03_1/src/main/webapp/WEB-INF/web.xml
  12. +105 −0 ...mples/oreilly-workbook-as7/ex03_1/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  13. +17 −0 jaxrs/examples/oreilly-workbook-as7/ex04_1/README.txt
  14. +94 −0 jaxrs/examples/oreilly-workbook-as7/ex04_1/pom.xml
  15. +93 −0 jaxrs/examples/oreilly-workbook-as7/ex04_1/src/main/java/com/restfully/shop/domain/Customer.java
  16. +181 −0 ...mples/oreilly-workbook-as7/ex04_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  17. +24 −0 ...es/oreilly-workbook-as7/ex04_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  18. +20 −0 jaxrs/examples/oreilly-workbook-as7/ex04_1/src/main/java/org/ietf/annotations/PATCH.java
  19. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex04_1/src/main/webapp/WEB-INF/web.xml
  20. +95 −0 jaxrs/examples/oreilly-workbook-as7/ex04_1/src/test/java/com/restfully/shop/test/PatchTest.java
  21. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex04_2/README.txt
  22. +94 −0 jaxrs/examples/oreilly-workbook-as7/ex04_2/pom.xml
  23. +93 −0 jaxrs/examples/oreilly-workbook-as7/ex04_2/src/main/java/com/restfully/shop/domain/Customer.java
  24. +182 −0 ...mples/oreilly-workbook-as7/ex04_2/src/main/java/com/restfully/shop/services/CustomerResource.java
  25. +24 −0 ...es/oreilly-workbook-as7/ex04_2/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  26. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex04_2/src/main/webapp/WEB-INF/web.xml
  27. +89 −0 ...mples/oreilly-workbook-as7/ex04_2/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  28. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex04_3/README.txt
  29. +94 −0 jaxrs/examples/oreilly-workbook-as7/ex04_3/pom.xml
  30. +93 −0 jaxrs/examples/oreilly-workbook-as7/ex04_3/src/main/java/com/restfully/shop/domain/Customer.java
  31. +30 −0 ...eilly-workbook-as7/ex04_3/src/main/java/com/restfully/shop/services/CustomerDatabaseResource.java
  32. +158 −0 ...mples/oreilly-workbook-as7/ex04_3/src/main/java/com/restfully/shop/services/CustomerResource.java
  33. +151 −0 ...illy-workbook-as7/ex04_3/src/main/java/com/restfully/shop/services/FirstLastCustomerResource.java
  34. +23 −0 ...es/oreilly-workbook-as7/ex04_3/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  35. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex04_3/src/main/webapp/WEB-INF/web.xml
  36. +116 −0 ...mples/oreilly-workbook-as7/ex04_3/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  37. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex05_1/README.txt
  38. +95 −0 jaxrs/examples/oreilly-workbook-as7/ex05_1/pom.xml
  39. +93 −0 jaxrs/examples/oreilly-workbook-as7/ex05_1/src/main/java/com/restfully/shop/domain/Customer.java
  40. +78 −0 ...s/examples/oreilly-workbook-as7/ex05_1/src/main/java/com/restfully/shop/services/CarResource.java
  41. +132 −0 ...mples/oreilly-workbook-as7/ex05_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  42. +24 −0 ...es/oreilly-workbook-as7/ex05_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  43. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex05_1/src/main/webapp/WEB-INF/web.xml
  44. +132 −0 jaxrs/examples/oreilly-workbook-as7/ex05_1/src/test/java/com/restfully/shop/test/InjectionTest.java
  45. +30 −0 jaxrs/examples/oreilly-workbook-as7/ex05_2/README.txt
  46. +95 −0 jaxrs/examples/oreilly-workbook-as7/ex05_2/pom.xml
  47. +93 −0 jaxrs/examples/oreilly-workbook-as7/ex05_2/src/main/java/com/restfully/shop/domain/Customer.java
  48. +75 −0 ...mples/oreilly-workbook-as7/ex05_2/src/main/java/com/restfully/shop/services/CustomerResource.java
  49. +23 −0 ...es/oreilly-workbook-as7/ex05_2/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  50. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex05_2/src/main/webapp/WEB-INF/web.xml
  51. +11 −0 jaxrs/examples/oreilly-workbook-as7/ex05_2/src/main/webapp/index.html
  52. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex06_1/README.txt
  53. +102 −0 jaxrs/examples/oreilly-workbook-as7/ex06_1/pom.xml
  54. +106 −0 jaxrs/examples/oreilly-workbook-as7/ex06_1/src/main/java/com/restfully/shop/domain/Customer.java
  55. +68 −0 ...mples/oreilly-workbook-as7/ex06_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  56. +23 −0 ...es/oreilly-workbook-as7/ex06_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  57. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex06_1/src/main/webapp/WEB-INF/web.xml
  58. +105 −0 ...mples/oreilly-workbook-as7/ex06_1/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  59. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex06_2/README.txt
  60. +96 −0 jaxrs/examples/oreilly-workbook-as7/ex06_2/pom.xml
  61. +112 −0 jaxrs/examples/oreilly-workbook-as7/ex06_2/src/main/java/com/restfully/shop/domain/Customer.java
  62. +64 −0 ...mples/oreilly-workbook-as7/ex06_2/src/main/java/com/restfully/shop/services/CustomerResource.java
  63. +64 −0 ...xamples/oreilly-workbook-as7/ex06_2/src/main/java/com/restfully/shop/services/JavaMarshaller.java
  64. +31 −0 ...es/oreilly-workbook-as7/ex06_2/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  65. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex06_2/src/main/webapp/WEB-INF/web.xml
  66. +86 −0 ...mples/oreilly-workbook-as7/ex06_2/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  67. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex07_1/README.txt
  68. +102 −0 jaxrs/examples/oreilly-workbook-as7/ex07_1/pom.xml
  69. +106 −0 jaxrs/examples/oreilly-workbook-as7/ex07_1/src/main/java/com/restfully/shop/domain/Customer.java
  70. +63 −0 ...mples/oreilly-workbook-as7/ex07_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  71. +13 −0 ...ples/oreilly-workbook-as7/ex07_1/src/main/java/com/restfully/shop/services/NotFoundException.java
  72. +20 −0 ...reilly-workbook-as7/ex07_1/src/main/java/com/restfully/shop/services/NotFoundExceptionMapper.java
  73. +31 −0 ...es/oreilly-workbook-as7/ex07_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  74. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex07_1/src/main/webapp/WEB-INF/web.xml
  75. +42 −0 ...mples/oreilly-workbook-as7/ex07_1/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  76. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex08_1/README.txt
  77. +100 −0 jaxrs/examples/oreilly-workbook-as7/ex08_1/pom.xml
  78. +121 −0 jaxrs/examples/oreilly-workbook-as7/ex08_1/src/main/java/com/restfully/shop/domain/Customer.java
  79. +60 −0 ...mples/oreilly-workbook-as7/ex08_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  80. +23 −0 ...es/oreilly-workbook-as7/ex08_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  81. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex08_1/src/main/webapp/WEB-INF/web.xml
  82. +108 −0 ...mples/oreilly-workbook-as7/ex08_1/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  83. +34 −0 jaxrs/examples/oreilly-workbook-as7/ex08_2/README.txt
  84. +100 −0 jaxrs/examples/oreilly-workbook-as7/ex08_2/pom.xml
  85. +121 −0 jaxrs/examples/oreilly-workbook-as7/ex08_2/src/main/java/com/restfully/shop/domain/Customer.java
  86. +78 −0 ...mples/oreilly-workbook-as7/ex08_2/src/main/java/com/restfully/shop/services/CustomerResource.java
  87. +23 −0 ...es/oreilly-workbook-as7/ex08_2/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  88. +10 −0 jaxrs/examples/oreilly-workbook-as7/ex08_2/src/main/webapp/WEB-INF/web.xml
  89. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex09_1/README.txt
  90. +100 −0 jaxrs/examples/oreilly-workbook-as7/ex09_1/pom.xml
  91. +123 −0 jaxrs/examples/oreilly-workbook-as7/ex09_1/src/main/java/com/restfully/shop/domain/Customer.java
  92. +63 −0 jaxrs/examples/oreilly-workbook-as7/ex09_1/src/main/java/com/restfully/shop/domain/Customers.java
  93. +60 −0 jaxrs/examples/oreilly-workbook-as7/ex09_1/src/main/java/com/restfully/shop/domain/Link.java
  94. +174 −0 ...mples/oreilly-workbook-as7/ex09_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  95. +23 −0 ...es/oreilly-workbook-as7/ex09_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  96. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex09_1/src/main/webapp/WEB-INF/web.xml
  97. +29 −0 ...mples/oreilly-workbook-as7/ex09_1/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  98. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/README.txt
  99. +100 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/pom.xml
  100. +123 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/domain/Customer.java
  101. +63 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/domain/Customers.java
  102. +34 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/domain/LineItem.java
  103. +109 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/domain/Link.java
  104. +87 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/domain/Order.java
  105. +63 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/domain/Orders.java
  106. +104 −0 ...mples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/services/CustomerResource.java
  107. +183 −0 ...examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/services/OrderResource.java
  108. +25 −0 ...es/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  109. +31 −0 ...examples/oreilly-workbook-as7/ex09_2/src/main/java/com/restfully/shop/services/StoreResource.java
  110. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex09_2/src/main/webapp/WEB-INF/web.xml
  111. +122 −0 ...examples/oreilly-workbook-as7/ex09_2/src/test/java/com/restfully/shop/test/OrderResourceTest.java
  112. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex10_1/README.txt
  113. +100 −0 jaxrs/examples/oreilly-workbook-as7/ex10_1/pom.xml
  114. +148 −0 jaxrs/examples/oreilly-workbook-as7/ex10_1/src/main/java/com/restfully/shop/domain/Customer.java
  115. +132 −0 ...mples/oreilly-workbook-as7/ex10_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  116. +23 −0 ...es/oreilly-workbook-as7/ex10_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  117. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex10_1/src/main/webapp/WEB-INF/web.xml
  118. +40 −0 ...mples/oreilly-workbook-as7/ex10_1/src/test/java/com/restfully/shop/test/CustomerResourceTest.java
  119. +16 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/README.txt
  120. +108 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/pom.xml
  121. +123 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/Customer.java
  122. +64 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/Customers.java
  123. +59 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/LineItem.java
  124. +109 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/Link.java
  125. +119 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/Order.java
  126. +64 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/Orders.java
  127. +47 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/Product.java
  128. +64 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/domain/Products.java
  129. +115 −0 ...ples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/persistence/CustomerEntity.java
  130. +51 −0 ...ples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/persistence/LineItemEntity.java
  131. +89 −0 ...xamples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/persistence/OrderEntity.java
  132. +49 −0 ...mples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/persistence/ProductEntity.java
  133. +43 −0 ...mples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/CustomerResource.java
  134. +135 −0 ...s/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/CustomerResourceBean.java
  135. +37 −0 ...les/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/EJBExceptionMapper.java
  136. +19 −0 ...-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/EntityNotFoundExceptionMapper.java
  137. +58 −0 ...examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/OrderResource.java
  138. +212 −0 ...ples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/OrderResourceBean.java
  139. +42 −0 ...amples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/ProductResource.java
  140. +119 −0 ...es/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/ProductResourceBean.java
  141. +13 −0 ...es/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/ShoppingApplication.java
  142. +18 −0 ...examples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/StoreResource.java
  143. +30 −0 ...ples/oreilly-workbook-as7/ex11_1/src/main/java/com/restfully/shop/services/StoreResourceBean.java
  144. +13 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/resources/META-INF/persistence.xml
  145. +6 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/main/webapp/WEB-INF/web.xml
  146. +164 −0 jaxrs/examples/oreilly-workbook-as7/ex11_1/src/test/java/com/restfully/shop/test/ShoppingTest.java
  147. +62 −0 jaxrs/examples/oreilly-workbook-as7/pom.xml
@@ -127,6 +127,15 @@
</excludes>
</fileSet>
<fileSet>
+ <directory>../examples/oreilly-workbook-as7</directory>
+ <outputDirectory>examples/oreilly-workbook-as7</outputDirectory>
+ <excludes>
+ <exclude>**/.svn/**</exclude>
+ <exclude>**/target/**</exclude>
+ <exclude>**/*.iml</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
<directory>../docbook/target/docbook/publish/en-US</directory>
<outputDirectory>docs/userguide</outputDirectory>
</fileSet>
@@ -159,6 +168,7 @@
<excludes>
<exclude>org.jboss.resteasy:tjws</exclude>
<exclude>org.jboss.resteasy:resteasy-jdk-http</exclude>
+ <exclude>org.jboss.resteasy:resteasy-netty</exclude>
<!-- <include>tjws:webserver</include> -->
<exclude>javax.servlet:servlet-api</exclude>
</excludes>
@@ -168,9 +178,9 @@
<unpack>false</unpack>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
+ <include>org.jboss.resteasy:resteasy-netty</include>
<include>org.jboss.resteasy:tjws</include>
<include>org.jboss.resteasy:resteasy-jdk-http</include>
- <!-- include>tjws:webserver</include> -->
<include>javax.servlet:servlet-api</include>
</includes>
<outputDirectory>embedded-lib</outputDirectory>
@@ -132,13 +132,11 @@
<artifactId>resteasy-jdk-http</artifactId>
<version>${project.version}</version>
</dependency>
- <!--
<dependency>
- <groupId>tjws</groupId>
- <artifactId>webserver</artifactId>
+ <groupId>org.jboss.resteasy</groupId>
+ <artifactId>resteasy-netty</artifactId>
+ <version>${project.version}</version>
</dependency>
- -->
-
</dependencies>
<build>
@@ -0,0 +1,21 @@
+<html>
+<body>
+<h1>O'Reilly <i>RESTFul Java</i> Workbook</h1>
+<p><img src="cat.gif"></p>
+<p>The examples in this directory are a compliment to the O'Reilly "RESTful Java with JAX-RS" book. This book has
+a detailed explanation of REST and JAX-RS. The appendix of the book also walks through all the example code provided within
+this directory.<p>
+<p>
+You can buy this book at:
+</p>
+<p>
+<a href="http://oreilly.com/catalog/9780596158040/">http://oreilly.com/catalog/9780596158040/</a>
+<p>
+The author, Bill Burke, is the founder of the RESTEasy project.
+
+</p>
+<p>
+A few users have asked me to port the O'Reilly examples to work with AS7. The differences are really in the Maven pom.xml file. You will have to manually start JBoss AS 7 before running each example.
+</p>
+</body>
+</html>
@@ -0,0 +1,14 @@
+The examples in this directory are a compliment to the O'Reilly "RESTful Java with JAX-RS" book. This book has
+a detailed explanation of REST and JAX-RS. The appendix of the book also walks through all the example code provided within
+this directory.
+
+You can buy this book at:
+
+http://oreilly.com/catalog/9780596158040/
+
+The author, Bill Burke, is the founder of the RESTEasy project.
+
+A few users have asked me to port the O'Reilly examples to work with AS7. The differences are really in the Maven pom.xml file. You will have to manually start JBoss AS 7 before running each example.
+
+
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,16 @@
+This project is an example of using JAX-RS, EJB, and JPA all together with JBoss 7
+
+
+System Requirements:
+====================
+- Maven 2.0.9 or higher
+- JBoss AS 7.1.1 or higher
+
+Building the project:
+====================
+1. Start JBoss AS 7 manually
+2. In root directory of project
+
+mvn clean install
+
+This will build a WAR, deploy it to JBoss, and run the unit test
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+ <parent>
+ <groupId>com.oreilly.rest.workbook</groupId>
+ <artifactId>workbook-pom-as7</artifactId>
+ <version>1.0</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.oreilly.rest.workbook</groupId>
+ <artifactId>workbook-ex03_1-as7</artifactId>
+ <version>1.0</version>
+ <packaging>war</packaging>
+ <name>ex03_1</name>
+ <description/>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.resteasy</groupId>
+ <artifactId>resteasy-jaxrs</artifactId>
+ <version>3.0-alpha-1-SNAPSHOT</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <finalName>ex03_1</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.as.plugins</groupId>
+ <artifactId>jboss-as-maven-plugin</artifactId>
+ <version>7.1.1.Final</version>
+ <executions>
+ <execution>
+ <id>jboss-deploy</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>deploy</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>jboss-undeploy</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>undeploy</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ <executions>
+ <execution>
+ <id>surefire-it</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
@@ -0,0 +1,76 @@
+package com.restfully.shop.domain;
+
+public class Customer {
+ private int id;
+ private String firstName;
+ private String lastName;
+ private String street;
+ private String city;
+ private String state;
+ private String zip;
+ private String country;
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getStreet() {
+ return street;
+ }
+
+ public void setStreet(String street) {
+ this.street = street;
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public String getZip() {
+ return zip;
+ }
+
+ public void setZip(String zip) {
+ this.zip = zip;
+ }
+
+ public String getCountry() {
+ return country;
+ }
+
+ public void setCountry(String country) {
+ this.country = country;
+ }
+}
Oops, something went wrong.

0 comments on commit 43b6625

Please sign in to comment.