Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial state of Roo-generated Petclinic app to serve as a foundation…

… for modifications.
  • Loading branch information...
commit 5f19b665788489bdbb46f8438a6140a695a25fbd 1 parent 24707a8
@jeremyg484 authored
Showing with 7,227 additions and 0 deletions.
  1. +65 −0 .classpath
  2. +2 −0  .gitignore
  3. +37 −0 .project
  4. +5 −0 .settings/org.eclipse.jdt.core.prefs
  5. +153 −0 .settings/org.eclipse.wst.common.component
  6. +6 −0 .settings/org.eclipse.wst.common.project.facet.core.xml
  7. +13 −0 .springBeans
  8. +515 −0 pom.xml
  9. +48 −0 src/main/java/com/springsource/petclinic/domain/AbstractPerson.java
  10. +12 −0 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_Configurable.aj
  11. +107 −0 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_Entity.aj
  12. +75 −0 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_JavaBean.aj
  13. +32 −0 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_Json.aj
  14. +25 −0 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_ToString.aj
  15. +20 −0 src/main/java/com/springsource/petclinic/domain/Owner.java
  16. +12 −0 src/main/java/com/springsource/petclinic/domain/Owner_Roo_Configurable.aj
  17. +32 −0 src/main/java/com/springsource/petclinic/domain/Owner_Roo_Entity.aj
  18. +19 −0 src/main/java/com/springsource/petclinic/domain/Owner_Roo_JavaBean.aj
  19. +32 −0 src/main/java/com/springsource/petclinic/domain/Owner_Roo_Json.aj
  20. +26 −0 src/main/java/com/springsource/petclinic/domain/Owner_Roo_ToString.aj
  21. +40 −0 src/main/java/com/springsource/petclinic/domain/Pet.java
  22. +12 −0 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Configurable.aj
  23. +106 −0 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Entity.aj
  24. +59 −0 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Finder.aj
  25. +53 −0 src/main/java/com/springsource/petclinic/domain/Pet_Roo_JavaBean.aj
  26. +32 −0 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Json.aj
  27. +22 −0 src/main/java/com/springsource/petclinic/domain/Pet_Roo_ToString.aj
  28. +31 −0 src/main/java/com/springsource/petclinic/domain/Vet.java
  29. +12 −0 src/main/java/com/springsource/petclinic/domain/Vet_Roo_Configurable.aj
  30. +32 −0 src/main/java/com/springsource/petclinic/domain/Vet_Roo_Entity.aj
  31. +27 −0 src/main/java/com/springsource/petclinic/domain/Vet_Roo_JavaBean.aj
  32. +32 −0 src/main/java/com/springsource/petclinic/domain/Vet_Roo_Json.aj
  33. +27 −0 src/main/java/com/springsource/petclinic/domain/Vet_Roo_ToString.aj
  34. +42 −0 src/main/java/com/springsource/petclinic/domain/Visit.java
  35. +12 −0 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Configurable.aj
  36. +106 −0 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Entity.aj
  37. +48 −0 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Finder.aj
  38. +45 −0 src/main/java/com/springsource/petclinic/domain/Visit_Roo_JavaBean.aj
  39. +32 −0 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Json.aj
  40. +21 −0 src/main/java/com/springsource/petclinic/domain/Visit_Roo_ToString.aj
  41. +7 −0 src/main/java/com/springsource/petclinic/reference/PetType.java
  42. +7 −0 src/main/java/com/springsource/petclinic/reference/Specialty.java
  43. +12 −0 src/main/java/com/springsource/petclinic/web/OwnerController.java
  44. +158 −0 src/main/java/com/springsource/petclinic/web/OwnerController_Roo_Controller.aj
  45. +12 −0 src/main/java/com/springsource/petclinic/web/PetController.java
  46. +200 −0 src/main/java/com/springsource/petclinic/web/PetController_Roo_Controller.aj
  47. +12 −0 src/main/java/com/springsource/petclinic/web/VetController.java
  48. +151 −0 src/main/java/com/springsource/petclinic/web/VetController_Roo_Controller.aj
  49. +12 −0 src/main/java/com/springsource/petclinic/web/VisitController.java
  50. +220 −0 src/main/java/com/springsource/petclinic/web/VisitController_Roo_Controller.aj
  51. +12 −0 src/main/resources/META-INF/persistence.xml
  52. +63 −0 src/main/resources/META-INF/spring/applicationContext.xml
  53. +6 −0 src/main/resources/META-INF/spring/database.properties
  54. +12 −0 src/main/resources/log4j.properties
  55. +1 −0  src/main/webapp/WEB-INF/classes/alt.properties
  56. +1 −0  src/main/webapp/WEB-INF/classes/standard.properties
  57. +70 −0 src/main/webapp/WEB-INF/i18n/application.properties
  58. +98 −0 src/main/webapp/WEB-INF/i18n/messages.properties
  59. +99 −0 src/main/webapp/WEB-INF/i18n/messages_de.properties
  60. +98 −0 src/main/webapp/WEB-INF/i18n/messages_es.properties
  61. +27 −0 src/main/webapp/WEB-INF/layouts/default.jspx
  62. +19 −0 src/main/webapp/WEB-INF/layouts/layouts.xml
  63. +76 −0 src/main/webapp/WEB-INF/spring/webmvc-config.xml
  64. +29 −0 src/main/webapp/WEB-INF/tags/form/create.tagx
  65. +25 −0 src/main/webapp/WEB-INF/tags/form/dependency.tagx
  66. +37 −0 src/main/webapp/WEB-INF/tags/form/fields/checkbox.tagx
  67. +28 −0 src/main/webapp/WEB-INF/tags/form/fields/column.tagx
  68. +75 −0 src/main/webapp/WEB-INF/tags/form/fields/datetime.tagx
  69. +51 −0 src/main/webapp/WEB-INF/tags/form/fields/display.tagx
  70. +46 −0 src/main/webapp/WEB-INF/tags/form/fields/editor.tagx
  71. +75 −0 src/main/webapp/WEB-INF/tags/form/fields/input.tagx
  72. +42 −0 src/main/webapp/WEB-INF/tags/form/fields/reference.tagx
  73. +99 −0 src/main/webapp/WEB-INF/tags/form/fields/select.tagx
  74. +35 −0 src/main/webapp/WEB-INF/tags/form/fields/simple.tagx
  75. +133 −0 src/main/webapp/WEB-INF/tags/form/fields/table.tagx
  76. +47 −0 src/main/webapp/WEB-INF/tags/form/fields/textarea.tagx
  77. +29 −0 src/main/webapp/WEB-INF/tags/form/find.tagx
  78. +31 −0 src/main/webapp/WEB-INF/tags/form/list.tagx
  79. +96 −0 src/main/webapp/WEB-INF/tags/form/show.tagx
  80. +42 −0 src/main/webapp/WEB-INF/tags/form/update.tagx
  81. +25 −0 src/main/webapp/WEB-INF/tags/menu/category.tagx
  82. +29 −0 src/main/webapp/WEB-INF/tags/menu/item.tagx
  83. +13 −0 src/main/webapp/WEB-INF/tags/menu/menu.tagx
  84. +31 −0 src/main/webapp/WEB-INF/tags/util/language.tagx
  85. +28 −0 src/main/webapp/WEB-INF/tags/util/load-scripts.tagx
  86. +87 −0 src/main/webapp/WEB-INF/tags/util/pagination.tagx
  87. +32 −0 src/main/webapp/WEB-INF/tags/util/panel.tagx
  88. +4 −0 src/main/webapp/WEB-INF/tags/util/placeholder.tagx
  89. +36 −0 src/main/webapp/WEB-INF/tags/util/theme.tagx
  90. +29 −0 src/main/webapp/WEB-INF/views/dataAccessFailure.jspx
  91. +38 −0 src/main/webapp/WEB-INF/views/footer.jspx
  92. +10 −0 src/main/webapp/WEB-INF/views/header.jspx
  93. +10 −0 src/main/webapp/WEB-INF/views/index-template.jspx
  94. +13 −0 src/main/webapp/WEB-INF/views/index.jspx
  95. +33 −0 src/main/webapp/WEB-INF/views/menu.jspx
  96. +16 −0 src/main/webapp/WEB-INF/views/owners/create.jspx
  97. +14 −0 src/main/webapp/WEB-INF/views/owners/list.jspx
  98. +15 −0 src/main/webapp/WEB-INF/views/owners/show.jspx
  99. +15 −0 src/main/webapp/WEB-INF/views/owners/update.jspx
  100. +16 −0 src/main/webapp/WEB-INF/views/owners/views.xml
  101. +12 −0 src/main/webapp/WEB-INF/views/pets/create.jspx
  102. +8 −0 src/main/webapp/WEB-INF/views/pets/findPetsByNameAndWeight.jspx
  103. +7 −0 src/main/webapp/WEB-INF/views/pets/findPetsByOwner.jspx
  104. +8 −0 src/main/webapp/WEB-INF/views/pets/findPetsBySendRemindersAndWeightLessThan.jspx
  105. +8 −0 src/main/webapp/WEB-INF/views/pets/findPetsByTypeAndNameLike.jspx
  106. +13 −0 src/main/webapp/WEB-INF/views/pets/list.jspx
  107. +11 −0 src/main/webapp/WEB-INF/views/pets/show.jspx
  108. +11 −0 src/main/webapp/WEB-INF/views/pets/update.jspx
  109. +28 −0 src/main/webapp/WEB-INF/views/pets/views.xml
  110. +28 −0 src/main/webapp/WEB-INF/views/resourceNotFound.jspx
  111. +28 −0 src/main/webapp/WEB-INF/views/uncaughtException.jspx
  112. +17 −0 src/main/webapp/WEB-INF/views/vets/create.jspx
  113. +14 −0 src/main/webapp/WEB-INF/views/vets/list.jspx
  114. +16 −0 src/main/webapp/WEB-INF/views/vets/show.jspx
  115. +16 −0 src/main/webapp/WEB-INF/views/vets/update.jspx
  116. +16 −0 src/main/webapp/WEB-INF/views/vets/views.xml
  117. +24 −0 src/main/webapp/WEB-INF/views/views.xml
  118. +11 −0 src/main/webapp/WEB-INF/views/visits/create.jspx
  119. +8 −0 src/main/webapp/WEB-INF/views/visits/findVisitsByDescriptionAndVisitDate.jspx
  120. +7 −0 src/main/webapp/WEB-INF/views/visits/findVisitsByDescriptionLike.jspx
  121. +8 −0 src/main/webapp/WEB-INF/views/visits/findVisitsByVisitDateBetween.jspx
  122. +12 −0 src/main/webapp/WEB-INF/views/visits/list.jspx
  123. +10 −0 src/main/webapp/WEB-INF/views/visits/show.jspx
  124. +10 −0 src/main/webapp/WEB-INF/views/visits/update.jspx
  125. +25 −0 src/main/webapp/WEB-INF/views/visits/views.xml
  126. +98 −0 src/main/webapp/WEB-INF/web.xml
  127. BIN  src/main/webapp/images/add.png
  128. BIN  src/main/webapp/images/banner-graphic.png
  129. BIN  src/main/webapp/images/create.png
  130. BIN  src/main/webapp/images/de.png
  131. BIN  src/main/webapp/images/delete.png
  132. BIN  src/main/webapp/images/en.png
  133. BIN  src/main/webapp/images/es.png
  134. BIN  src/main/webapp/images/favicon.ico
  135. BIN  src/main/webapp/images/list.png
  136. BIN  src/main/webapp/images/resultset_first.png
  137. BIN  src/main/webapp/images/resultset_last.png
  138. BIN  src/main/webapp/images/resultset_next.png
  139. BIN  src/main/webapp/images/resultset_previous.png
  140. BIN  src/main/webapp/images/show.png
  141. BIN  src/main/webapp/images/springsource-logo.png
  142. BIN  src/main/webapp/images/update.png
  143. +71 −0 src/main/webapp/selenium/test-owner.xhtml
  144. +46 −0 src/main/webapp/selenium/test-pet.xhtml
  145. +37 −0 src/main/webapp/selenium/test-suite.xhtml
  146. +76 −0 src/main/webapp/selenium/test-vet.xhtml
  147. +41 −0 src/main/webapp/selenium/test-visit.xhtml
  148. +362 −0 src/main/webapp/styles/alt.css
  149. +366 −0 src/main/webapp/styles/standard.css
  150. +8 −0 src/test/java/com/springsource/petclinic/domain/OwnerDataOnDemand.java
  151. +12 −0 src/test/java/com/springsource/petclinic/domain/OwnerDataOnDemand_Roo_Configurable.aj
  152. +84 −0 src/test/java/com/springsource/petclinic/domain/OwnerDataOnDemand_Roo_DataOnDemand.aj
  153. +13 −0 src/test/java/com/springsource/petclinic/domain/OwnerIntegrationTest.java
  154. +12 −0 src/test/java/com/springsource/petclinic/domain/OwnerIntegrationTest_Roo_Configurable.aj
  155. +116 −0 src/test/java/com/springsource/petclinic/domain/OwnerIntegrationTest_Roo_IntegrationTest.aj
  156. +8 −0 src/test/java/com/springsource/petclinic/domain/PetDataOnDemand.java
  157. +12 −0 src/test/java/com/springsource/petclinic/domain/PetDataOnDemand_Roo_Configurable.aj
  158. +73 −0 src/test/java/com/springsource/petclinic/domain/PetDataOnDemand_Roo_DataOnDemand.aj
  159. +13 −0 src/test/java/com/springsource/petclinic/domain/PetIntegrationTest.java
  160. +12 −0 src/test/java/com/springsource/petclinic/domain/PetIntegrationTest_Roo_Configurable.aj
  161. +116 −0 src/test/java/com/springsource/petclinic/domain/PetIntegrationTest_Roo_IntegrationTest.aj
  162. +8 −0 src/test/java/com/springsource/petclinic/domain/VetDataOnDemand.java
  163. +12 −0 src/test/java/com/springsource/petclinic/domain/VetDataOnDemand_Roo_Configurable.aj
  164. +86 −0 src/test/java/com/springsource/petclinic/domain/VetDataOnDemand_Roo_DataOnDemand.aj
  165. +13 −0 src/test/java/com/springsource/petclinic/domain/VetIntegrationTest.java
  166. +12 −0 src/test/java/com/springsource/petclinic/domain/VetIntegrationTest_Roo_Configurable.aj
  167. +116 −0 src/test/java/com/springsource/petclinic/domain/VetIntegrationTest_Roo_IntegrationTest.aj
  168. +8 −0 src/test/java/com/springsource/petclinic/domain/VisitDataOnDemand.java
  169. +12 −0 src/test/java/com/springsource/petclinic/domain/VisitDataOnDemand_Roo_Configurable.aj
  170. +73 −0 src/test/java/com/springsource/petclinic/domain/VisitDataOnDemand_Roo_DataOnDemand.aj
  171. +13 −0 src/test/java/com/springsource/petclinic/domain/VisitIntegrationTest.java
  172. +12 −0 src/test/java/com/springsource/petclinic/domain/VisitIntegrationTest_Roo_Configurable.aj
  173. +116 −0 src/test/java/com/springsource/petclinic/domain/VisitIntegrationTest_Roo_IntegrationTest.aj
View
65 .classpath
@@ -0,0 +1,65 @@
+<classpath>
+ <classpathentry kind="src" path="src/test/java" output="target/test-classes" including="**/*.java|**/*.aj"/>
+ <classpathentry kind="src" path="src/test/resources" output="target/test-classes" excluding="**/*.java"/>
+ <classpathentry kind="src" path="src/main/java" including="**/*.java|**/*.aj"/>
+ <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
+ <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="var" path="M2_REPO/javax/el/el-api/1.0/el-api-1.0.jar" sourcepath="M2_REPO/javax/el/el-api/1.0/el-api-1.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/jstl/1.2/jstl-1.2.jar" sourcepath="M2_REPO/javax/servlet/jstl/1.2/jstl-1.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar" sourcepath="M2_REPO/javax/transaction/jta/1.1/jta-1.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar" sourcepath="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar" sourcepath="M2_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar" sourcepath="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar" sourcepath="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar" sourcepath="M2_REPO/cglib/cglib-nodep/2.2/cglib-nodep-2.2-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar" sourcepath="M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar" sourcepath="M2_REPO/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-digester/commons-digester/2.0/commons-digester-2.0.jar" sourcepath="M2_REPO/commons-digester/commons-digester/2.0/commons-digester-2.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar" sourcepath="M2_REPO/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar" sourcepath="M2_REPO/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/net/sf/flexjson/flexjson/2.0/flexjson-2.0.jar" sourcepath="M2_REPO/net/sf/flexjson/flexjson/2.0/flexjson-2.0-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.5.5-Final/hibernate-annotations-3.5.5-Final.jar" sourcepath="M2_REPO/org/hibernate/hibernate-annotations/3.5.5-Final/hibernate-annotations-3.5.5-Final-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar" sourcepath="M2_REPO/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-core/3.5.5-Final/hibernate-core-3.5.5-Final.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.5.5-Final/hibernate-core-3.5.5-Final-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.5.5-Final/hibernate-entitymanager-3.5.5-Final.jar" sourcepath="M2_REPO/org/hibernate/hibernate-entitymanager/3.5.5-Final/hibernate-entitymanager-3.5.5-Final-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar" sourcepath="M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-validator/4.1.0.Final/hibernate-validator-4.1.0.Final.jar" sourcepath="M2_REPO/org/hibernate/hibernate-validator/4.1.0.Final/hibernate-validator-4.1.0.Final-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/hsqldb/hsqldb/2.0.0/hsqldb-2.0.0.jar"/>
+ <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.jar" sourcepath="M2_REPO/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1.jar" sourcepath="M2_REPO/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/joda-time/joda-time/1.6/joda-time-1.6.jar" sourcepath="M2_REPO/joda-time/joda-time/1.6/joda-time-1.6-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/4.8.1/junit-4.8.1.jar" sourcepath="M2_REPO/junit/junit/4.8.1/junit-4.8.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.16/log4j-1.2.16.jar" sourcepath="M2_REPO/log4j/log4j/1.2.16/log4j-1.2.16-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/roo/org.springframework.roo.annotations/1.1.0.M3/org.springframework.roo.annotations-1.1.0.M3.jar" sourcepath="M2_REPO/org/springframework/roo/org.springframework.roo.annotations/1.1.0.M3/org.springframework.roo.annotations-1.1.0.M3-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar" sourcepath="M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-aop/3.0.4.RELEASE/spring-aop-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-aop/3.0.4.RELEASE/spring-aop-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-asm/3.0.4.RELEASE/spring-asm-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-asm/3.0.4.RELEASE/spring-asm-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-aspects/3.0.4.RELEASE/spring-aspects-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-aspects/3.0.4.RELEASE/spring-aspects-3.0.4.RELEASE-sources.jar">
+ <attributes>
+ <attribute name="org.eclipse.ajdt.aspectpath" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-beans/3.0.4.RELEASE/spring-beans-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-beans/3.0.4.RELEASE/spring-beans-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-context/3.0.4.RELEASE/spring-context-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-context/3.0.4.RELEASE/spring-context-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-context-support/3.0.4.RELEASE/spring-context-support-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-context-support/3.0.4.RELEASE/spring-context-support-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-core/3.0.4.RELEASE/spring-core-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-core/3.0.4.RELEASE/spring-core-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-expression/3.0.4.RELEASE/spring-expression-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-expression/3.0.4.RELEASE/spring-expression-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-jdbc/3.0.4.RELEASE/spring-jdbc-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-jdbc/3.0.4.RELEASE/spring-jdbc-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/webflow/spring-js/2.1.1.RELEASE/spring-js-2.1.1.RELEASE.jar" sourcepath="M2_REPO/org/springframework/webflow/spring-js/2.1.1.RELEASE/spring-js-2.1.1.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-orm/3.0.4.RELEASE/spring-orm-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-orm/3.0.4.RELEASE/spring-orm-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-test/3.0.4.RELEASE/spring-test-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-test/3.0.4.RELEASE/spring-test-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-tx/3.0.4.RELEASE/spring-tx-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-tx/3.0.4.RELEASE/spring-tx-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-web/3.0.4.RELEASE/spring-web-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-web/3.0.4.RELEASE/spring-web-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/springframework/spring-webmvc/3.0.4.RELEASE/spring-webmvc-3.0.4.RELEASE.jar" sourcepath="M2_REPO/org/springframework/spring-webmvc/3.0.4.RELEASE/spring-webmvc-3.0.4.RELEASE-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/tiles/tiles-api/2.2.1/tiles-api-2.2.1.jar" sourcepath="M2_REPO/org/apache/tiles/tiles-api/2.2.1/tiles-api-2.2.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/tiles/tiles-core/2.2.1/tiles-core-2.2.1.jar" sourcepath="M2_REPO/org/apache/tiles/tiles-core/2.2.1/tiles-core-2.2.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/tiles/tiles-jsp/2.2.1/tiles-jsp-2.2.1.jar" sourcepath="M2_REPO/org/apache/tiles/tiles-jsp/2.2.1/tiles-jsp-2.2.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/tiles/tiles-servlet/2.2.1/tiles-servlet-2.2.1.jar" sourcepath="M2_REPO/org/apache/tiles/tiles-servlet/2.2.1/tiles-servlet-2.2.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/org/apache/tiles/tiles-template/2.2.1/tiles-template-2.2.1.jar" sourcepath="M2_REPO/org/apache/tiles/tiles-template/2.2.1/tiles-template-2.2.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar" sourcepath="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2-sources.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.ajdt.core.ASPECTJRT_CONTAINER"/>
+</classpath>
View
2  .gitignore
@@ -0,0 +1,2 @@
+target
+log.roo
View
37 .project
@@ -0,0 +1,37 @@
+<projectDescription>
+ <name>petclinic</name>
+ <comment/>
+ <projects/>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.ajdt.core.ajbuilder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.ajdt.core.ajbuilder</name>
+ <arguments>
+ <dictionary>
+ <key>aspectPath</key>
+ <value>org.springframework.aspects</value>
+ </dictionary>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.springframework.ide.eclipse.core.springbuilder</name>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.ajdt.ui.ajnature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>com.springsource.sts.roo.core.nature</nature>
+ <nature>org.springframework.ide.eclipse.core.springnature</nature>
+ </natures>
+</projectDescription>
View
5 .settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,5 @@
+#Thu Sep 16 15:47:41 PDT 2010
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
View
153 .settings/org.eclipse.wst.common.component
@@ -0,0 +1,153 @@
+<project-modules id="moduleCoreId" project-version="2.0">
+ <wb-module deploy-name="petclinic">
+ <property name="context-root" value="petclinic"/>
+ <wb-resource deploy-path="/" source-path="src/main/webapp"/>
+ <property name="java-output-path" value="/target/classes"/>
+ <dependent-module archiveName="antlr-2.7.6.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="aopalliance-1.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="aspectjrt-1.6.10.M1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/aspectj/aspectjrt/1.6.10.M1/aspectjrt-1.6.10.M1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="cglib-nodep-2.2.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/cglib/cglib-nodep/2.2/cglib-nodep-2.2.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="commons-beanutils-1.8.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="commons-collections-3.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="commons-dbcp-1.3.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-dbcp/commons-dbcp/1.3/commons-dbcp-1.3.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="commons-digester-2.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-digester/commons-digester/2.0/commons-digester-2.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="commons-fileupload-1.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="commons-pool-1.5.4.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="dom4j-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="flexjson-2.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/net/sf/flexjson/flexjson/2.0/flexjson-2.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="hibernate-annotations-3.5.5-Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-annotations/3.5.5-Final/hibernate-annotations-3.5.5-Final.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="hibernate-commons-annotations-3.2.0.Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="hibernate-core-3.5.5-Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-core/3.5.5-Final/hibernate-core-3.5.5-Final.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="hibernate-entitymanager-3.5.5-Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-entitymanager/3.5.5-Final/hibernate-entitymanager-3.5.5-Final.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="hibernate-jpa-2.0-api-1.0.0.Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="hibernate-validator-4.1.0.Final.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hibernate/hibernate-validator/4.1.0.Final/hibernate-validator-4.1.0.Final.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="hsqldb-2.0.0.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/hsqldb/hsqldb/2.0.0/hsqldb-2.0.0.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="javassist-3.9.0.GA.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="jcl-over-slf4j-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/jcl-over-slf4j/1.6.1/jcl-over-slf4j-1.6.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="joda-time-1.6.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/joda-time/joda-time/1.6/joda-time-1.6.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="jstl-1.2.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/servlet/jstl/1.2/jstl-1.2.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="jta-1.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="log4j-1.2.16.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/log4j/log4j/1.2.16/log4j-1.2.16.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="slf4j-api-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="slf4j-log4j12-1.6.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-aop-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-aop/3.0.4.RELEASE/spring-aop-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-asm-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-asm/3.0.4.RELEASE/spring-asm-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-aspects-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-aspects/3.0.4.RELEASE/spring-aspects-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-beans-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-beans/3.0.4.RELEASE/spring-beans-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-context-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-context/3.0.4.RELEASE/spring-context-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-context-support-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-context-support/3.0.4.RELEASE/spring-context-support-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-core-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-core/3.0.4.RELEASE/spring-core-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-expression-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-expression/3.0.4.RELEASE/spring-expression-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-jdbc-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-jdbc/3.0.4.RELEASE/spring-jdbc-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-js-2.1.1.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/webflow/spring-js/2.1.1.RELEASE/spring-js-2.1.1.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-orm-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-orm/3.0.4.RELEASE/spring-orm-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-tx-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-tx/3.0.4.RELEASE/spring-tx-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-web-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-web/3.0.4.RELEASE/spring-web-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="spring-webmvc-3.0.4.RELEASE.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/springframework/spring-webmvc/3.0.4.RELEASE/spring-webmvc-3.0.4.RELEASE.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="tiles-api-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-api/2.2.1/tiles-api-2.2.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="tiles-core-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-core/2.2.1/tiles-core-2.2.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="tiles-jsp-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-jsp/2.2.1/tiles-jsp-2.2.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="tiles-servlet-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-servlet/2.2.1/tiles-servlet-2.2.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="tiles-template-2.2.1.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/apache/tiles/tiles-template/2.2.1/tiles-template-2.2.1.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="validation-api-1.0.0.GA.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="xml-apis-1.0.b2.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/java"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/>
+ </wb-module>
+</project-modules>
View
6 .settings/org.eclipse.wst.common.project.facet.core.xml
@@ -0,0 +1,6 @@
+<faceted-project>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.web" version="2.5"/>
+ <installed facet="jst.java" version="6.0"/>
+</faceted-project>
View
13 .springBeans
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beansProjectDescription>
+ <version>1</version>
+ <pluginVersion><![CDATA[2.5.0.201008251000-M3]]></pluginVersion>
+ <configSuffixes>
+ <configSuffix><![CDATA[xml]]></configSuffix>
+ </configSuffixes>
+ <enableImports><![CDATA[false]]></enableImports>
+ <configs>
+ </configs>
+ <configSets>
+ </configSets>
+</beansProjectDescription>
View
515 pom.xml
@@ -0,0 +1,515 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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>com.springsource.petclinic</groupId>
+ <artifactId>petclinic</artifactId>
+ <packaging>war</packaging>
+ <version>0.1.0.BUILD-SNAPSHOT</version>
+ <name>petclinic</name>
+ <properties>
+ <roo.version>1.1.0.M3</roo.version>
+ <spring.version>3.0.4.RELEASE</spring.version>
+ <aspectj.version>1.6.10.M1</aspectj.version>
+ <slf4j.version>1.6.1</slf4j.version>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <repositories>
+ <repository>
+ <id>spring-maven-release</id>
+ <name>Spring Maven Release Repository</name>
+ <url>http://maven.springframework.org/release</url>
+ </repository>
+ <repository>
+ <id>spring-maven-milestone</id>
+ <name>Spring Maven Milestone Repository</name>
+ <url>http://maven.springframework.org/milestone</url>
+ </repository>
+ <repository>
+ <id>spring-roo-repository</id>
+ <name>Spring Roo Repository</name>
+ <url>http://spring-roo-repository.springsource.org/release</url>
+ </repository>
+ <repository>
+ <id>JBoss Repo</id>
+ <url>https://repository.jboss.org/nexus/content/repositories/releases</url>
+ <name>JBoss Repo</name>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>spring-maven-release</id>
+ <name>Spring Maven Release Repository</name>
+ <url>http://maven.springframework.org/release</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>spring-maven-milestone</id>
+ <name>Spring Maven Milestone Repository</name>
+ <url>http://maven.springframework.org/milestone</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>spring-roo-repository</id>
+ <name>Spring Roo Repository</name>
+ <url>http://spring-roo-repository.springsource.org/release</url>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <!-- General dependencies for standard applications -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>${slf4j.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.aspectj</groupId>
+ <artifactId>aspectjrt</artifactId>
+ <version>${aspectj.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.flexjson</groupId>
+ <artifactId>flexjson</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <!-- ROO dependencies -->
+ <dependency>
+ <groupId>org.springframework.roo</groupId>
+ <artifactId>org.springframework.roo.annotations</artifactId>
+ <version>${roo.version}</version>
+ <scope>provided</scope>
+ </dependency>
+ <!-- Spring dependencies -->
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ <version>${spring.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-test</artifactId>
+ <version>${spring.version}</version>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-aop</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-aspects</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-tx</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>2.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>3.5.5-Final</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-entitymanager</artifactId>
+ <version>3.5.5-Final</version>
+ <exclusions>
+ <exclusion>
+ <groupId>cglib</groupId>
+ <artifactId>cglib</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>dom4j</groupId>
+ <artifactId>dom4j</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate.javax.persistence</groupId>
+ <artifactId>hibernate-jpa-2.0-api</artifactId>
+ <version>1.0.0.Final</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>4.1.0.Final</version>
+ <exclusions>
+ <exclusion>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ <version>1.0.0.GA</version>
+ </dependency>
+ <dependency>
+ <groupId>cglib</groupId>
+ <artifactId>cglib-nodep</artifactId>
+ <version>2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>jta</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-jdbc</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-orm</artifactId>
+ <version>${spring.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-pool</groupId>
+ <artifactId>commons-pool</artifactId>
+ <version>1.5.4</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-dbcp</groupId>
+ <artifactId>commons-dbcp</artifactId>
+ <version>1.3</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-pool</groupId>
+ <artifactId>commons-pool</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xerces</groupId>
+ <artifactId>xerces</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tiles</groupId>
+ <artifactId>tiles-core</artifactId>
+ <version>2.2.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tiles</groupId>
+ <artifactId>tiles-jsp</artifactId>
+ <version>2.2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-web</artifactId>
+ <version>${spring.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-webmvc</artifactId>
+ <version>${spring.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.webflow</groupId>
+ <artifactId>spring-js</artifactId>
+ <version>2.1.1.RELEASE</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-beans</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context-support</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-digester</groupId>
+ <artifactId>commons-digester</artifactId>
+ <version>2.0</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.2.1</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ <version>1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>joda-time</groupId>
+ <artifactId>joda-time</artifactId>
+ <version>1.6</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1-beta-1</version>
+ <!--
+ <configuration> <webXml>target/web.xml</webXml> </configuration>
+ -->
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>aspectj-maven-plugin</artifactId>
+ <version>1.0</version>
+ <dependencies>
+ <!-- NB: You must use Maven 2.0.9 or above or these are ignored (see MNG-2972) -->
+ <dependency>
+ <groupId>org.aspectj</groupId>
+ <artifactId>aspectjrt</artifactId>
+ <version>${aspectj.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.aspectj</groupId>
+ <artifactId>aspectjtools</artifactId>
+ <version>${aspectj.version}</version>
+ </dependency>
+ </dependencies>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ <goal>test-compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <outxml>true</outxml>
+ <aspectLibraries>
+ <aspectLibrary>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-aspects</artifactId>
+ </aspectLibrary>
+ </aspectLibraries>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.4.2</version>
+ <configuration>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.5</version>
+ <configuration>
+ <excludes>
+ <exclude>**/*_Roo_*</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-5</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.5</version>
+ </plugin>
+ <!-- IDE -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.7</version> <!-- Note 2.8 does not work with AspectJ aspect path -->
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>false</downloadJavadocs>
+ <wtpversion>2.0</wtpversion>
+ <additionalBuildcommands>
+ <buildCommand>
+ <name>org.eclipse.ajdt.core.ajbuilder</name>
+ <arguments>
+ <aspectPath>org.springframework.aspects</aspectPath>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.springframework.ide.eclipse.core.springbuilder</name>
+ </buildCommand>
+ </additionalBuildcommands>
+ <additionalProjectnatures>
+ <projectnature>org.eclipse.ajdt.ui.ajnature</projectnature>
+ <projectnature>com.springsource.sts.roo.core.nature</projectnature>
+ <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
+ </additionalProjectnatures>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-idea-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <dependenciesAsLibraries>true</dependenciesAsLibraries>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>tomcat-maven-plugin</artifactId>
+ <version>1.0</version>
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>jetty-maven-plugin</artifactId>
+ <version>7.1.2.v20100523</version>
+ <configuration>
+ <webAppConfig>
+ <contextPath>/${project.name}</contextPath>
+ </webAppConfig>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>selenium-maven-plugin</artifactId>
+ <version>1.0.1</version>
+ <configuration>
+ <suite>src/main/webapp/selenium/test-suite.xhtml</suite>
+ <browser>*firefox</browser>
+ <results>${project.build.directory}/target/selenium.txt</results>
+ <startURL>http://localhost:4444/</startURL>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
View
48 src/main/java/com/springsource/petclinic/domain/AbstractPerson.java
@@ -0,0 +1,48 @@
+package com.springsource.petclinic.domain;
+
+import javax.persistence.Entity;
+import org.springframework.roo.addon.javabean.RooJavaBean;
+import org.springframework.roo.addon.tostring.RooToString;
+import org.springframework.roo.addon.entity.RooEntity;
+import javax.validation.constraints.Size;
+import javax.validation.constraints.NotNull;
+import java.util.Date;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import org.springframework.format.annotation.DateTimeFormat;
+
+@Entity
+@RooJavaBean
+@RooToString
+@RooEntity
+public abstract class AbstractPerson {
+
+ @Size(min = 3, max = 30)
+ private String firstName;
+
+ @NotNull
+ @Size(min = 3, max = 30)
+ private String lastName;
+
+ @NotNull
+ @Size(min = 1, max = 50)
+ private String address;
+
+ @NotNull
+ @Size(max = 30)
+ private String city;
+
+ @NotNull
+ private String telephone;
+
+ @Size(max = 30)
+ private String homePage;
+
+ @Size(min = 6, max = 30)
+ private String email;
+
+ @NotNull
+ @Temporal(TemporalType.TIMESTAMP)
+ @DateTimeFormat(style = "S-")
+ private Date birthDay;
+}
View
12 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_Configurable.aj
@@ -0,0 +1,12 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import org.springframework.beans.factory.annotation.Configurable;
+
+privileged aspect AbstractPerson_Roo_Configurable {
+
+ declare @type: AbstractPerson: @Configurable;
+
+}
View
107 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_Entity.aj
@@ -0,0 +1,107 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.AbstractPerson;
+import java.lang.Integer;
+import java.lang.Long;
+import java.lang.SuppressWarnings;
+import java.util.List;
+import javax.persistence.Column;
+import javax.persistence.EntityManager;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.PersistenceContext;
+import javax.persistence.Version;
+import org.springframework.transaction.annotation.Transactional;
+
+privileged aspect AbstractPerson_Roo_Entity {
+
+ @PersistenceContext
+ transient EntityManager AbstractPerson.entityManager;
+
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ @Column(name = "id")
+ private Long AbstractPerson.id;
+
+ @Version
+ @Column(name = "version")
+ private Integer AbstractPerson.version;
+
+ public Long AbstractPerson.getId() {
+ return this.id;
+ }
+
+ public void AbstractPerson.setId(Long id) {
+ this.id = id;
+ }
+
+ public Integer AbstractPerson.getVersion() {
+ return this.version;
+ }
+
+ public void AbstractPerson.setVersion(Integer version) {
+ this.version = version;
+ }
+
+ @Transactional
+ public void AbstractPerson.persist() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ this.entityManager.persist(this);
+ }
+
+ @Transactional
+ public void AbstractPerson.remove() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ if (this.entityManager.contains(this)) {
+ this.entityManager.remove(this);
+ } else {
+ AbstractPerson attached = this.entityManager.find(this.getClass(), this.id);
+ this.entityManager.remove(attached);
+ }
+ }
+
+ @Transactional
+ public void AbstractPerson.flush() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ this.entityManager.flush();
+ }
+
+ @Transactional
+ public AbstractPerson AbstractPerson.merge() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ AbstractPerson merged = this.entityManager.merge(this);
+ this.entityManager.flush();
+ return merged;
+ }
+
+ public static final EntityManager AbstractPerson.entityManager() {
+ EntityManager em = new AbstractPerson(){
+ }.entityManager;
+ if (em == null) throw new IllegalStateException("Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)");
+ return em;
+ }
+
+ public static long AbstractPerson.countAbstractpeople() {
+ return ((Number) entityManager().createQuery("select count(o) from AbstractPerson o").getSingleResult()).longValue();
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<AbstractPerson> AbstractPerson.findAllAbstractpeople() {
+ return entityManager().createQuery("select o from AbstractPerson o").getResultList();
+ }
+
+ public static AbstractPerson AbstractPerson.findAbstractPerson(Long id) {
+ if (id == null) return null;
+ return entityManager().find(AbstractPerson.class, id);
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<AbstractPerson> AbstractPerson.findAbstractPersonEntries(int firstResult, int maxResults) {
+ return entityManager().createQuery("select o from AbstractPerson o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
+ }
+
+}
View
75 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_JavaBean.aj
@@ -0,0 +1,75 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import java.lang.String;
+import java.util.Date;
+
+privileged aspect AbstractPerson_Roo_JavaBean {
+
+ public String AbstractPerson.getFirstName() {
+ return this.firstName;
+ }
+
+ public void AbstractPerson.setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String AbstractPerson.getLastName() {
+ return this.lastName;
+ }
+
+ public void AbstractPerson.setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String AbstractPerson.getAddress() {
+ return this.address;
+ }
+
+ public void AbstractPerson.setAddress(String address) {
+ this.address = address;
+ }
+
+ public String AbstractPerson.getCity() {
+ return this.city;
+ }
+
+ public void AbstractPerson.setCity(String city) {
+ this.city = city;
+ }
+
+ public String AbstractPerson.getTelephone() {
+ return this.telephone;
+ }
+
+ public void AbstractPerson.setTelephone(String telephone) {
+ this.telephone = telephone;
+ }
+
+ public String AbstractPerson.getHomePage() {
+ return this.homePage;
+ }
+
+ public void AbstractPerson.setHomePage(String homePage) {
+ this.homePage = homePage;
+ }
+
+ public String AbstractPerson.getEmail() {
+ return this.email;
+ }
+
+ public void AbstractPerson.setEmail(String email) {
+ this.email = email;
+ }
+
+ public Date AbstractPerson.getBirthDay() {
+ return this.birthDay;
+ }
+
+ public void AbstractPerson.setBirthDay(Date birthDay) {
+ this.birthDay = birthDay;
+ }
+
+}
View
32 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_Json.aj
@@ -0,0 +1,32 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.AbstractPerson;
+import flexjson.JSONDeserializer;
+import flexjson.JSONSerializer;
+import java.lang.String;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+privileged aspect AbstractPerson_Roo_Json {
+
+ public String AbstractPerson.toJson() {
+ return new JSONSerializer().exclude("*.class").serialize(this);
+ }
+
+ public static AbstractPerson AbstractPerson.fromJsonToAbstractPerson(String json) {
+ return new JSONDeserializer<AbstractPerson>().use(null, AbstractPerson.class).deserialize(json);
+ }
+
+ public static String AbstractPerson.toJsonArray(Collection<AbstractPerson> collection) {
+ return new JSONSerializer().exclude("*.class").serialize(collection);
+ }
+
+ public static Collection<AbstractPerson> AbstractPerson.fromJsonArrayToAbstractpeople(String json) {
+ return new JSONDeserializer<List<AbstractPerson>>().use(null, ArrayList.class).use("values", AbstractPerson.class).deserialize(json);
+ }
+
+}
View
25 src/main/java/com/springsource/petclinic/domain/AbstractPerson_Roo_ToString.aj
@@ -0,0 +1,25 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import java.lang.String;
+
+privileged aspect AbstractPerson_Roo_ToString {
+
+ public String AbstractPerson.toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("Id: ").append(getId()).append(", ");
+ sb.append("Version: ").append(getVersion()).append(", ");
+ sb.append("FirstName: ").append(getFirstName()).append(", ");
+ sb.append("LastName: ").append(getLastName()).append(", ");
+ sb.append("Address: ").append(getAddress()).append(", ");
+ sb.append("City: ").append(getCity()).append(", ");
+ sb.append("Telephone: ").append(getTelephone()).append(", ");
+ sb.append("HomePage: ").append(getHomePage()).append(", ");
+ sb.append("Email: ").append(getEmail()).append(", ");
+ sb.append("BirthDay: ").append(getBirthDay());
+ return sb.toString();
+ }
+
+}
View
20 src/main/java/com/springsource/petclinic/domain/Owner.java
@@ -0,0 +1,20 @@
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.AbstractPerson;
+import javax.persistence.Entity;
+import org.springframework.roo.addon.javabean.RooJavaBean;
+import org.springframework.roo.addon.tostring.RooToString;
+import org.springframework.roo.addon.entity.RooEntity;
+import java.util.Set;
+import javax.persistence.OneToMany;
+import javax.persistence.CascadeType;
+
+@Entity
+@RooJavaBean
+@RooToString
+@RooEntity
+public class Owner extends AbstractPerson {
+
+ @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
+ private Set<com.springsource.petclinic.domain.Pet> pets = new java.util.HashSet<com.springsource.petclinic.domain.Pet>();
+}
View
12 src/main/java/com/springsource/petclinic/domain/Owner_Roo_Configurable.aj
@@ -0,0 +1,12 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import org.springframework.beans.factory.annotation.Configurable;
+
+privileged aspect Owner_Roo_Configurable {
+
+ declare @type: Owner: @Configurable;
+
+}
View
32 src/main/java/com/springsource/petclinic/domain/Owner_Roo_Entity.aj
@@ -0,0 +1,32 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Owner;
+import java.lang.Long;
+import java.lang.SuppressWarnings;
+import java.util.List;
+
+privileged aspect Owner_Roo_Entity {
+
+ public static long Owner.countOwners() {
+ return ((Number) entityManager().createQuery("select count(o) from Owner o").getSingleResult()).longValue();
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Owner> Owner.findAllOwners() {
+ return entityManager().createQuery("select o from Owner o").getResultList();
+ }
+
+ public static Owner Owner.findOwner(Long id) {
+ if (id == null) return null;
+ return entityManager().find(Owner.class, id);
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Owner> Owner.findOwnerEntries(int firstResult, int maxResults) {
+ return entityManager().createQuery("select o from Owner o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
+ }
+
+}
View
19 src/main/java/com/springsource/petclinic/domain/Owner_Roo_JavaBean.aj
@@ -0,0 +1,19 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Pet;
+import java.util.Set;
+
+privileged aspect Owner_Roo_JavaBean {
+
+ public Set<Pet> Owner.getPets() {
+ return this.pets;
+ }
+
+ public void Owner.setPets(Set<Pet> pets) {
+ this.pets = pets;
+ }
+
+}
View
32 src/main/java/com/springsource/petclinic/domain/Owner_Roo_Json.aj
@@ -0,0 +1,32 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Owner;
+import flexjson.JSONDeserializer;
+import flexjson.JSONSerializer;
+import java.lang.String;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+privileged aspect Owner_Roo_Json {
+
+ public String Owner.toJson() {
+ return new JSONSerializer().exclude("*.class").serialize(this);
+ }
+
+ public static Owner Owner.fromJsonToOwner(String json) {
+ return new JSONDeserializer<Owner>().use(null, Owner.class).deserialize(json);
+ }
+
+ public static String Owner.toJsonArray(Collection<Owner> collection) {
+ return new JSONSerializer().exclude("*.class").serialize(collection);
+ }
+
+ public static Collection<Owner> Owner.fromJsonArrayToOwners(String json) {
+ return new JSONDeserializer<List<Owner>>().use(null, ArrayList.class).use("values", Owner.class).deserialize(json);
+ }
+
+}
View
26 src/main/java/com/springsource/petclinic/domain/Owner_Roo_ToString.aj
@@ -0,0 +1,26 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import java.lang.String;
+
+privileged aspect Owner_Roo_ToString {
+
+ public String Owner.toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("Id: ").append(getId()).append(", ");
+ sb.append("Version: ").append(getVersion()).append(", ");
+ sb.append("FirstName: ").append(getFirstName()).append(", ");
+ sb.append("LastName: ").append(getLastName()).append(", ");
+ sb.append("Address: ").append(getAddress()).append(", ");
+ sb.append("City: ").append(getCity()).append(", ");
+ sb.append("Telephone: ").append(getTelephone()).append(", ");
+ sb.append("HomePage: ").append(getHomePage()).append(", ");
+ sb.append("Email: ").append(getEmail()).append(", ");
+ sb.append("BirthDay: ").append(getBirthDay()).append(", ");
+ sb.append("Pets: ").append(getPets() == null ? "null" : getPets().size());
+ return sb.toString();
+ }
+
+}
View
40 src/main/java/com/springsource/petclinic/domain/Pet.java
@@ -0,0 +1,40 @@
+package com.springsource.petclinic.domain;
+
+import javax.persistence.Entity;
+import org.springframework.roo.addon.javabean.RooJavaBean;
+import org.springframework.roo.addon.tostring.RooToString;
+import org.springframework.roo.addon.entity.RooEntity;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+import javax.validation.constraints.Min;
+import com.springsource.petclinic.domain.Owner;
+import javax.persistence.ManyToOne;
+import javax.persistence.JoinColumn;
+import com.springsource.petclinic.reference.PetType;
+import javax.persistence.Enumerated;
+
+@Entity
+@RooJavaBean
+@RooToString
+@RooEntity(finders = { "findPetsByNameAndWeight", "findPetsByOwner", "findPetsBySendRemindersAndWeightLessThan", "findPetsByTypeAndNameLike" })
+public class Pet {
+
+ @NotNull
+ private boolean sendReminders;
+
+ @NotNull
+ @Size(min = 1)
+ private String name;
+
+ @NotNull
+ @Min(0L)
+ private Float weight;
+
+ @ManyToOne(targetEntity = Owner.class)
+ @JoinColumn
+ private Owner owner;
+
+ @NotNull
+ @Enumerated
+ private PetType type;
+}
View
12 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Configurable.aj
@@ -0,0 +1,12 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import org.springframework.beans.factory.annotation.Configurable;
+
+privileged aspect Pet_Roo_Configurable {
+
+ declare @type: Pet: @Configurable;
+
+}
View
106 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Entity.aj
@@ -0,0 +1,106 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Pet;
+import java.lang.Integer;
+import java.lang.Long;
+import java.lang.SuppressWarnings;
+import java.util.List;
+import javax.persistence.Column;
+import javax.persistence.EntityManager;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.PersistenceContext;
+import javax.persistence.Version;
+import org.springframework.transaction.annotation.Transactional;
+
+privileged aspect Pet_Roo_Entity {
+
+ @PersistenceContext
+ transient EntityManager Pet.entityManager;
+
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ @Column(name = "id")
+ private Long Pet.id;
+
+ @Version
+ @Column(name = "version")
+ private Integer Pet.version;
+
+ public Long Pet.getId() {
+ return this.id;
+ }
+
+ public void Pet.setId(Long id) {
+ this.id = id;
+ }
+
+ public Integer Pet.getVersion() {
+ return this.version;
+ }
+
+ public void Pet.setVersion(Integer version) {
+ this.version = version;
+ }
+
+ @Transactional
+ public void Pet.persist() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ this.entityManager.persist(this);
+ }
+
+ @Transactional
+ public void Pet.remove() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ if (this.entityManager.contains(this)) {
+ this.entityManager.remove(this);
+ } else {
+ Pet attached = this.entityManager.find(this.getClass(), this.id);
+ this.entityManager.remove(attached);
+ }
+ }
+
+ @Transactional
+ public void Pet.flush() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ this.entityManager.flush();
+ }
+
+ @Transactional
+ public Pet Pet.merge() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ Pet merged = this.entityManager.merge(this);
+ this.entityManager.flush();
+ return merged;
+ }
+
+ public static final EntityManager Pet.entityManager() {
+ EntityManager em = new Pet().entityManager;
+ if (em == null) throw new IllegalStateException("Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)");
+ return em;
+ }
+
+ public static long Pet.countPets() {
+ return ((Number) entityManager().createQuery("select count(o) from Pet o").getSingleResult()).longValue();
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Pet> Pet.findAllPets() {
+ return entityManager().createQuery("select o from Pet o").getResultList();
+ }
+
+ public static Pet Pet.findPet(Long id) {
+ if (id == null) return null;
+ return entityManager().find(Pet.class, id);
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Pet> Pet.findPetEntries(int firstResult, int maxResults) {
+ return entityManager().createQuery("select o from Pet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
+ }
+
+}
View
59 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Finder.aj
@@ -0,0 +1,59 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Owner;
+import com.springsource.petclinic.reference.PetType;
+import java.lang.Float;
+import java.lang.String;
+import javax.persistence.EntityManager;
+import javax.persistence.Query;
+
+privileged aspect Pet_Roo_Finder {
+
+ public static Query Pet.findPetsByNameAndWeight(String name, Float weight) {
+ if (name == null || name.length() == 0) throw new IllegalArgumentException("The name argument is required");
+ if (weight == null) throw new IllegalArgumentException("The weight argument is required");
+ EntityManager em = Pet.entityManager();
+ Query q = em.createQuery("SELECT Pet FROM Pet AS pet WHERE pet.name = :name AND pet.weight = :weight");
+ q.setParameter("name", name);
+ q.setParameter("weight", weight);
+ return q;
+ }
+
+ public static Query Pet.findPetsByOwner(Owner owner) {
+ if (owner == null) throw new IllegalArgumentException("The owner argument is required");
+ EntityManager em = Pet.entityManager();
+ Query q = em.createQuery("SELECT Pet FROM Pet AS pet WHERE pet.owner = :owner");
+ q.setParameter("owner", owner);
+ return q;
+ }
+
+ public static Query Pet.findPetsBySendRemindersAndWeightLessThan(boolean sendReminders, Float weight) {
+ if (weight == null) throw new IllegalArgumentException("The weight argument is required");
+ EntityManager em = Pet.entityManager();
+ Query q = em.createQuery("SELECT Pet FROM Pet AS pet WHERE pet.sendReminders = :sendReminders AND pet.weight < :weight");
+ q.setParameter("sendReminders", sendReminders);
+ q.setParameter("weight", weight);
+ return q;
+ }
+
+ public static Query Pet.findPetsByTypeAndNameLike(PetType type, String name) {
+ if (type == null) throw new IllegalArgumentException("The type argument is required");
+ if (name == null || name.length() == 0) throw new IllegalArgumentException("The name argument is required");
+ name = name.replace('*', '%');
+ if (name.charAt(0) != '%') {
+ name = "%" + name;
+ }
+ if (name.charAt(name.length() -1) != '%') {
+ name = name + "%";
+ }
+ EntityManager em = Pet.entityManager();
+ Query q = em.createQuery("SELECT Pet FROM Pet AS pet WHERE pet.type = :type AND LOWER(pet.name) LIKE LOWER(:name)");
+ q.setParameter("type", type);
+ q.setParameter("name", name);
+ return q;
+ }
+
+}
View
53 src/main/java/com/springsource/petclinic/domain/Pet_Roo_JavaBean.aj
@@ -0,0 +1,53 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Owner;
+import com.springsource.petclinic.reference.PetType;
+import java.lang.Float;
+import java.lang.String;
+
+privileged aspect Pet_Roo_JavaBean {
+
+ public boolean Pet.isSendReminders() {
+ return this.sendReminders;
+ }
+
+ public void Pet.setSendReminders(boolean sendReminders) {
+ this.sendReminders = sendReminders;
+ }
+
+ public String Pet.getName() {
+ return this.name;
+ }
+
+ public void Pet.setName(String name) {
+ this.name = name;
+ }
+
+ public Float Pet.getWeight() {
+ return this.weight;
+ }
+
+ public void Pet.setWeight(Float weight) {
+ this.weight = weight;
+ }
+
+ public Owner Pet.getOwner() {
+ return this.owner;
+ }
+
+ public void Pet.setOwner(Owner owner) {
+ this.owner = owner;
+ }
+
+ public PetType Pet.getType() {
+ return this.type;
+ }
+
+ public void Pet.setType(PetType type) {
+ this.type = type;
+ }
+
+}
View
32 src/main/java/com/springsource/petclinic/domain/Pet_Roo_Json.aj
@@ -0,0 +1,32 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Pet;
+import flexjson.JSONDeserializer;
+import flexjson.JSONSerializer;
+import java.lang.String;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+privileged aspect Pet_Roo_Json {
+
+ public String Pet.toJson() {
+ return new JSONSerializer().exclude("*.class").serialize(this);
+ }
+
+ public static Pet Pet.fromJsonToPet(String json) {
+ return new JSONDeserializer<Pet>().use(null, Pet.class).deserialize(json);
+ }
+
+ public static String Pet.toJsonArray(Collection<Pet> collection) {
+ return new JSONSerializer().exclude("*.class").serialize(collection);
+ }
+
+ public static Collection<Pet> Pet.fromJsonArrayToPets(String json) {
+ return new JSONDeserializer<List<Pet>>().use(null, ArrayList.class).use("values", Pet.class).deserialize(json);
+ }
+
+}
View
22 src/main/java/com/springsource/petclinic/domain/Pet_Roo_ToString.aj
@@ -0,0 +1,22 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import java.lang.String;
+
+privileged aspect Pet_Roo_ToString {
+
+ public String Pet.toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("Id: ").append(getId()).append(", ");
+ sb.append("Version: ").append(getVersion()).append(", ");
+ sb.append("SendReminders: ").append(isSendReminders()).append(", ");
+ sb.append("Name: ").append(getName()).append(", ");
+ sb.append("Weight: ").append(getWeight()).append(", ");
+ sb.append("Owner: ").append(getOwner()).append(", ");
+ sb.append("Type: ").append(getType());
+ return sb.toString();
+ }
+
+}
View
31 src/main/java/com/springsource/petclinic/domain/Vet.java
@@ -0,0 +1,31 @@
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.AbstractPerson;
+import javax.persistence.Entity;
+import org.springframework.roo.addon.javabean.RooJavaBean;
+import org.springframework.roo.addon.tostring.RooToString;
+import org.springframework.roo.addon.entity.RooEntity;
+import java.util.Calendar;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Past;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import org.springframework.format.annotation.DateTimeFormat;
+import com.springsource.petclinic.reference.Specialty;
+import javax.persistence.Enumerated;
+
+@Entity
+@RooJavaBean
+@RooToString
+@RooEntity
+public class Vet extends AbstractPerson {
+
+ @NotNull
+ @Past
+ @Temporal(TemporalType.TIMESTAMP)
+ @DateTimeFormat(style = "S-")
+ private Calendar employedSince;
+
+ @Enumerated
+ private Specialty specialty;
+}
View
12 src/main/java/com/springsource/petclinic/domain/Vet_Roo_Configurable.aj
@@ -0,0 +1,12 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import org.springframework.beans.factory.annotation.Configurable;
+
+privileged aspect Vet_Roo_Configurable {
+
+ declare @type: Vet: @Configurable;
+
+}
View
32 src/main/java/com/springsource/petclinic/domain/Vet_Roo_Entity.aj
@@ -0,0 +1,32 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Vet;
+import java.lang.Long;
+import java.lang.SuppressWarnings;
+import java.util.List;
+
+privileged aspect Vet_Roo_Entity {
+
+ public static long Vet.countVets() {
+ return ((Number) entityManager().createQuery("select count(o) from Vet o").getSingleResult()).longValue();
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Vet> Vet.findAllVets() {
+ return entityManager().createQuery("select o from Vet o").getResultList();
+ }
+
+ public static Vet Vet.findVet(Long id) {
+ if (id == null) return null;
+ return entityManager().find(Vet.class, id);
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Vet> Vet.findVetEntries(int firstResult, int maxResults) {
+ return entityManager().createQuery("select o from Vet o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
+ }
+
+}
View
27 src/main/java/com/springsource/petclinic/domain/Vet_Roo_JavaBean.aj
@@ -0,0 +1,27 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.reference.Specialty;
+import java.util.Calendar;
+
+privileged aspect Vet_Roo_JavaBean {
+
+ public Calendar Vet.getEmployedSince() {
+ return this.employedSince;
+ }
+
+ public void Vet.setEmployedSince(Calendar employedSince) {
+ this.employedSince = employedSince;
+ }
+
+ public Specialty Vet.getSpecialty() {
+ return this.specialty;
+ }
+
+ public void Vet.setSpecialty(Specialty specialty) {
+ this.specialty = specialty;
+ }
+
+}
View
32 src/main/java/com/springsource/petclinic/domain/Vet_Roo_Json.aj
@@ -0,0 +1,32 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Vet;
+import flexjson.JSONDeserializer;
+import flexjson.JSONSerializer;
+import java.lang.String;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+privileged aspect Vet_Roo_Json {
+
+ public String Vet.toJson() {
+ return new JSONSerializer().exclude("*.class").serialize(this);
+ }
+
+ public static Vet Vet.fromJsonToVet(String json) {
+ return new JSONDeserializer<Vet>().use(null, Vet.class).deserialize(json);
+ }
+
+ public static String Vet.toJsonArray(Collection<Vet> collection) {
+ return new JSONSerializer().exclude("*.class").serialize(collection);
+ }
+
+ public static Collection<Vet> Vet.fromJsonArrayToVets(String json) {
+ return new JSONDeserializer<List<Vet>>().use(null, ArrayList.class).use("values", Vet.class).deserialize(json);
+ }
+
+}
View
27 src/main/java/com/springsource/petclinic/domain/Vet_Roo_ToString.aj
@@ -0,0 +1,27 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import java.lang.String;
+
+privileged aspect Vet_Roo_ToString {
+
+ public String Vet.toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("Id: ").append(getId()).append(", ");
+ sb.append("Version: ").append(getVersion()).append(", ");
+ sb.append("FirstName: ").append(getFirstName()).append(", ");
+ sb.append("LastName: ").append(getLastName()).append(", ");
+ sb.append("Address: ").append(getAddress()).append(", ");
+ sb.append("City: ").append(getCity()).append(", ");
+ sb.append("Telephone: ").append(getTelephone()).append(", ");
+ sb.append("HomePage: ").append(getHomePage()).append(", ");
+ sb.append("Email: ").append(getEmail()).append(", ");
+ sb.append("BirthDay: ").append(getBirthDay()).append(", ");
+ sb.append("EmployedSince: ").append(getEmployedSince() == null ? "null" : getEmployedSince().getTime()).append(", ");
+ sb.append("Specialty: ").append(getSpecialty());
+ return sb.toString();
+ }
+
+}
View
42 src/main/java/com/springsource/petclinic/domain/Visit.java
@@ -0,0 +1,42 @@
+package com.springsource.petclinic.domain;
+
+import javax.persistence.Entity;
+import org.springframework.roo.addon.javabean.RooJavaBean;
+import org.springframework.roo.addon.tostring.RooToString;
+import org.springframework.roo.addon.entity.RooEntity;
+import javax.validation.constraints.Size;
+import java.util.Date;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Past;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+import org.springframework.format.annotation.DateTimeFormat;
+import com.springsource.petclinic.domain.Pet;
+import javax.persistence.ManyToOne;
+import javax.persistence.JoinColumn;
+import com.springsource.petclinic.domain.Vet;
+
+@Entity
+@RooJavaBean
+@RooToString
+@RooEntity(finders = { "findVisitsByDescriptionAndVisitDate", "findVisitsByVisitDateBetween", "findVisitsByDescriptionLike" })
+public class Visit {
+
+ @Size(max = 255)
+ private String description;
+
+ @NotNull
+ @Past
+ @Temporal(TemporalType.TIMESTAMP)
+ @DateTimeFormat(style = "S-")
+ private Date visitDate;
+
+ @NotNull
+ @ManyToOne(targetEntity = Pet.class)
+ @JoinColumn
+ private Pet pet;
+
+ @ManyToOne(targetEntity = Vet.class)
+ @JoinColumn
+ private Vet vet;
+}
View
12 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Configurable.aj
@@ -0,0 +1,12 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import org.springframework.beans.factory.annotation.Configurable;
+
+privileged aspect Visit_Roo_Configurable {
+
+ declare @type: Visit: @Configurable;
+
+}
View
106 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Entity.aj
@@ -0,0 +1,106 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Visit;
+import java.lang.Integer;
+import java.lang.Long;
+import java.lang.SuppressWarnings;
+import java.util.List;
+import javax.persistence.Column;
+import javax.persistence.EntityManager;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.PersistenceContext;
+import javax.persistence.Version;
+import org.springframework.transaction.annotation.Transactional;
+
+privileged aspect Visit_Roo_Entity {
+
+ @PersistenceContext
+ transient EntityManager Visit.entityManager;
+
+ @Id
+ @GeneratedValue(strategy = GenerationType.AUTO)
+ @Column(name = "id")
+ private Long Visit.id;
+
+ @Version
+ @Column(name = "version")
+ private Integer Visit.version;
+
+ public Long Visit.getId() {
+ return this.id;
+ }
+
+ public void Visit.setId(Long id) {
+ this.id = id;
+ }
+
+ public Integer Visit.getVersion() {
+ return this.version;
+ }
+
+ public void Visit.setVersion(Integer version) {
+ this.version = version;
+ }
+
+ @Transactional
+ public void Visit.persist() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ this.entityManager.persist(this);
+ }
+
+ @Transactional
+ public void Visit.remove() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ if (this.entityManager.contains(this)) {
+ this.entityManager.remove(this);
+ } else {
+ Visit attached = this.entityManager.find(this.getClass(), this.id);
+ this.entityManager.remove(attached);
+ }
+ }
+
+ @Transactional
+ public void Visit.flush() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ this.entityManager.flush();
+ }
+
+ @Transactional
+ public Visit Visit.merge() {
+ if (this.entityManager == null) this.entityManager = entityManager();
+ Visit merged = this.entityManager.merge(this);
+ this.entityManager.flush();
+ return merged;
+ }
+
+ public static final EntityManager Visit.entityManager() {
+ EntityManager em = new Visit().entityManager;
+ if (em == null) throw new IllegalStateException("Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)");
+ return em;
+ }
+
+ public static long Visit.countVisits() {
+ return ((Number) entityManager().createQuery("select count(o) from Visit o").getSingleResult()).longValue();
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Visit> Visit.findAllVisits() {
+ return entityManager().createQuery("select o from Visit o").getResultList();
+ }
+
+ public static Visit Visit.findVisit(Long id) {
+ if (id == null) return null;
+ return entityManager().find(Visit.class, id);
+ }
+
+ @SuppressWarnings("unchecked")
+ public static List<Visit> Visit.findVisitEntries(int firstResult, int maxResults) {
+ return entityManager().createQuery("select o from Visit o").setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
+ }
+
+}
View
48 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Finder.aj
@@ -0,0 +1,48 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import java.lang.String;
+import java.util.Date;
+import javax.persistence.EntityManager;
+import javax.persistence.Query;
+
+privileged aspect Visit_Roo_Finder {
+
+ public static Query Visit.findVisitsByDescriptionAndVisitDate(String description, Date visitDate) {
+ if (description == null || description.length() == 0) throw new IllegalArgumentException("The description argument is required");
+ if (visitDate == null) throw new IllegalArgumentException("The visitDate argument is required");
+ EntityManager em = Visit.entityManager();
+ Query q = em.createQuery("SELECT Visit FROM Visit AS visit WHERE visit.description = :description AND visit.visitDate = :visitDate");
+ q.setParameter("description", description);
+ q.setParameter("visitDate", visitDate);
+ return q;
+ }
+
+ public static Query Visit.findVisitsByVisitDateBetween(Date minVisitDate, Date maxVisitDate) {
+ if (minVisitDate == null) throw new IllegalArgumentException("The minVisitDate argument is required");
+ if (maxVisitDate == null) throw new IllegalArgumentException("The maxVisitDate argument is required");
+ EntityManager em = Visit.entityManager();
+ Query q = em.createQuery("SELECT Visit FROM Visit AS visit WHERE visit.visitDate BETWEEN :minVisitDate AND :maxVisitDate");
+ q.setParameter("minVisitDate", minVisitDate);
+ q.setParameter("maxVisitDate", maxVisitDate);
+ return q;
+ }
+
+ public static Query Visit.findVisitsByDescriptionLike(String description) {
+ if (description == null || description.length() == 0) throw new IllegalArgumentException("The description argument is required");
+ description = description.replace('*', '%');
+ if (description.charAt(0) != '%') {
+ description = "%" + description;
+ }
+ if (description.charAt(description.length() -1) != '%') {
+ description = description + "%";
+ }
+ EntityManager em = Visit.entityManager();
+ Query q = em.createQuery("SELECT Visit FROM Visit AS visit WHERE LOWER(visit.description) LIKE LOWER(:description)");
+ q.setParameter("description", description);
+ return q;
+ }
+
+}
View
45 src/main/java/com/springsource/petclinic/domain/Visit_Roo_JavaBean.aj
@@ -0,0 +1,45 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Pet;
+import com.springsource.petclinic.domain.Vet;
+import java.lang.String;
+import java.util.Date;
+
+privileged aspect Visit_Roo_JavaBean {
+
+ public String Visit.getDescription() {
+ return this.description;
+ }
+
+ public void Visit.setDescription(String description) {
+ this.description = description;
+ }
+
+ public Date Visit.getVisitDate() {
+ return this.visitDate;
+ }
+
+ public void Visit.setVisitDate(Date visitDate) {
+ this.visitDate = visitDate;
+ }
+
+ public Pet Visit.getPet() {
+ return this.pet;
+ }
+
+ public void Visit.setPet(Pet pet) {
+ this.pet = pet;
+ }
+
+ public Vet Visit.getVet() {
+ return this.vet;
+ }
+
+ public void Visit.setVet(Vet vet) {
+ this.vet = vet;
+ }
+
+}
View
32 src/main/java/com/springsource/petclinic/domain/Visit_Roo_Json.aj
@@ -0,0 +1,32 @@
+// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
+// You may push code into the target .java compilation unit if you wish to edit any member(s).
+
+package com.springsource.petclinic.domain;
+
+import com.springsource.petclinic.domain.Visit;
+import flexjson.JSONDeserializer;
+import flexjson.JSONSerializer;
+import java.lang.String;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+privileged aspect Visit_Roo_Json {
+
+ public String Visit.toJson() {
+ return new JSONSerializer().exclude("*.class").serialize(this);
+ }
+
+ public static Visit Visit.fromJsonToVisit(String json) {
+ return new JSONDeserializer<Visit>().use(null, Visit.class).deserialize(json);