Browse files

Merge branch 'master' of https://github.com/krimple/spring-roo-in-act…

…ion-examples

Conflicts:
	chapter-07-other-web-frameworks/coursemanager-ajax/src/main/resources/META-INF/persistence.xml
	chapter-08-security/coursemanager-security/ReadMe.txt
	chapter-08-security/coursemanager-security/pom.xml
	chapter-14-integration/coursemanager-spring-int/src/main/resources/META-INF/spring/applicationContext.xml
  • Loading branch information...
2 parents 6ade4b8 + 4538994 commit cb01334daad717e07dcf7de6a01f6f2931a41d93 @srinip2007 srinip2007 committed Apr 8, 2012
Showing with 10 additions and 6,383 deletions.
  1. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/dbex.lck
  2. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/log/log1.dat
  3. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c10.dat
  4. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c101.dat
  5. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c111.dat
  6. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c121.dat
  7. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c130.dat
  8. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c141.dat
  9. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c150.dat
  10. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c161.dat
  11. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c171.dat
  12. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c180.dat
  13. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c191.dat
  14. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1a1.dat
  15. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1b1.dat
  16. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1c0.dat
  17. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1d1.dat
  18. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1e0.dat
  19. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1f1.dat
  20. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c20.dat
  21. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c200.dat
  22. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c211.dat
  23. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c221.dat
  24. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c230.dat
  25. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c241.dat
  26. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c251.dat
  27. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c260.dat
  28. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c271.dat
  29. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c281.dat
  30. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c290.dat
  31. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2a1.dat
  32. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2b1.dat
  33. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2c1.dat
  34. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2d0.dat
  35. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2e1.dat
  36. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2f0.dat
  37. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c300.dat
  38. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c31.dat
  39. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c311.dat
  40. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c321.dat
  41. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c331.dat
  42. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c340.dat
  43. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c351.dat
  44. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c361.dat
  45. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c371.dat
  46. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c380.dat
  47. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c391.dat
  48. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3a1.dat
  49. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3b1.dat
  50. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3c0.dat
  51. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3d1.dat
  52. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3e1.dat
  53. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3f1.dat
  54. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c400.dat
  55. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c41.dat
  56. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c411.dat
  57. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c421.dat
  58. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c430.dat
  59. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c441.dat
  60. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c451.dat
  61. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c461.dat
  62. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c490.dat
  63. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c4a1.dat
  64. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c51.dat
  65. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c81.dat
  66. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c90.dat
  67. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/ca1.dat
  68. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cb1.dat
  69. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cc0.dat
  70. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cd1.dat
  71. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/ce1.dat
  72. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cf0.dat
  73. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d5f0.dat
  74. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d601.dat
  75. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d630.dat
  76. +0 −22 chapter-02-getting-started/taskmanager-noroo/taskmanager/service.properties
  77. BIN chapter-02-getting-started/{taskmanager-noroo → taskmanager}/taskmanager/seg0/c60.dat
  78. BIN chapter-02-getting-started/{taskmanager-noroo → taskmanager}/taskmanager/seg0/c71.dat
  79. +5 −5 chapter-04-jpa-advanced/coursemanager/src/main/resources/META-INF/spring/database.properties
  80. +0 −17 chapter-05-web-mvc/coursemanager/coursemanager-chapter-05.properties
  81. +0 −22 chapter-05-web-mvc/coursemanager/coursemanager-chapter-05.script
  82. +0 −36 chapter-06-advanced-web-mvc/coursemanager-ajax/.roo-dbre
  83. +0 −455 chapter-06-advanced-web-mvc/coursemanager-ajax/pom.xml
  84. +0 −21 chapter-06-advanced-web-mvc/coursemanager-ajax/readme.txt
  85. +0 −33 ...dvanced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Address.java
  86. +0 −84 ...advanced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Course.java
  87. +0 −7 ...-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/CourseTypeEnum.java
  88. +0 −6 ...d-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/FrequencyType.java
  89. +0 −23 ...nced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Instructor.java
  90. +0 −71 ...vanced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Offering.java
  91. +0 −92 ...advanced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Person.java
  92. +0 −52 ...ed-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Registration.java
  93. +0 −96 ...dvanced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Student.java
  94. +0 −41 ...06-advanced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Tag.java
  95. +0 −26 ...web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram.java
  96. +0 −18 ...ajax/src/main/java/org/rooinaction/coursemanager/web/ApplicationConversionServiceFactoryBean.java
  97. +0 −24 ...-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/CourseController.java
  98. +0 −12 ...-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/InstructorController.java
  99. +0 −12 ...eb-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/OfferingController.java
  100. +0 −12 ...vc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/RegistrationController.java
  101. +0 −12 ...web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/StudentController.java
  102. +0 −12 ...ced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/TagController.java
  103. +0 −12 ...coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/TrainingProgramController.java
  104. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/resources/META-INF/persistence.xml
  105. +0 −71 ...-06-advanced-web-mvc/coursemanager-ajax/src/main/resources/META-INF/spring/applicationContext.xml
  106. +0 −17 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/resources/log4j.properties
  107. +0 −1 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/classes/alt.properties
  108. +0 −1 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/classes/standard.properties
  109. +0 −103 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/i18n/application.properties
  110. +0 −7 ...ter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/i18n/application_es.properties
  111. +0 −99 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/i18n/messages.properties
  112. +0 −99 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/i18n/messages_es.properties
  113. +0 −28 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/layouts/default.jspx
  114. +0 −19 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/layouts/layouts.xml
  115. +0 −75 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/spring/webmvc-config.xml
  116. +0 −61 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/create.tagx
  117. +0 −25 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/dependency.tagx
  118. +0 −38 ...ter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/checkbox.tagx
  119. +0 −63 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/column.tagx
  120. +0 −75 ...ter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/datetime.tagx
  121. +0 −51 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/display.tagx
  122. +0 −60 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/editor.tagx
  123. +0 −108 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/input.tagx
  124. +0 −42 ...er-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/reference.tagx
  125. +0 −199 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/select.tagx
  126. +0 −35 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/simple.tagx
  127. +0 −112 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/spinner.tagx
  128. +0 −162 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/table.tagx
  129. +0 −47 ...ter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/fields/textarea.tagx
  130. +0 −30 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/find.tagx
  131. +0 −31 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/list.tagx
  132. +0 −103 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/show.tagx
  133. +0 −47 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/form/update.tagx
  134. +0 −25 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/menu/category.tagx
  135. +0 −29 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/menu/item.tagx
  136. +0 −13 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/menu/menu.tagx
  137. +0 −31 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/util/language.tagx
  138. +0 −42 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/util/load-scripts.tagx
  139. +0 −87 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/util/pagination.tagx
  140. +0 −33 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/util/panel.tagx
  141. +0 −5 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/util/placeholder.tagx
  142. +0 −36 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/util/theme.tagx
  143. +0 −15 ...06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/weaselform/sanitizeparam.tagx
  144. +0 −86 ...-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/tags/weaselform/validtextbox.tagx
  145. +0 −16 ...6-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses-ajax-temp/create.jspx
  146. +0 −8 ...mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses-ajax-temp/findCoursesByNameLike.jspx
  147. +0 −32 ...-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses-ajax-temp/list.jspx
  148. +0 −14 ...-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses-ajax-temp/show.jspx
  149. +0 −117 ...6-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses-ajax-temp/update.jspx
  150. +0 −19 ...-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses-ajax-temp/views.xml
  151. +0 −56 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses/create.jspx
  152. +0 −15 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses/list.jspx
  153. +0 −15 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses/show.jspx
  154. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses/update.jspx
  155. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/courses/views.xml
  156. +0 −30 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/dataAccessFailure.jspx
  157. +0 −38 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/footer.jspx
  158. +0 −11 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/header.jspx
  159. +0 −11 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/index-template.jspx
  160. +0 −14 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/index.jspx
  161. +0 −19 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/instructors/create.jspx
  162. +0 −15 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/instructors/list.jspx
  163. +0 −18 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/instructors/show.jspx
  164. +0 −18 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/instructors/update.jspx
  165. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/instructors/views.xml
  166. +0 −38 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/menu.jspx
  167. +0 −12 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/offerings/create.jspx
  168. +0 −12 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/offerings/list.jspx
  169. +0 −10 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/offerings/show.jspx
  170. +0 −11 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/offerings/update.jspx
  171. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/offerings/views.xml
  172. +0 −12 ...er-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/registrations/create.jspx
  173. +0 −13 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/registrations/list.jspx
  174. +0 −11 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/registrations/show.jspx
  175. +0 −11 ...er-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/registrations/update.jspx
  176. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/registrations/views.xml
  177. +0 −29 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/resourceNotFound.jspx
  178. +0 −21 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/students/create.jspx
  179. +0 −15 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/students/list.jspx
  180. +0 −19 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/students/show.jspx
  181. +0 −20 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/students/update.jspx
  182. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/students/views.xml
  183. +0 −11 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/tags/create.jspx
  184. +0 −12 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/tags/list.jspx
  185. +0 −10 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/tags/show.jspx
  186. +0 −10 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/tags/update.jspx
  187. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/tags/views.xml
  188. +0 −15 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/testdrive/index.jspx
  189. +0 −7 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/testdrive/views.xml
  190. +0 −10 ...06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/trainingprograms/create.jspx
  191. +0 −10 ...r-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/trainingprograms/list.jspx
  192. +0 −8 ...r-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/trainingprograms/show.jspx
  193. +0 −9 ...06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/trainingprograms/update.jspx
  194. +0 −16 ...r-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/trainingprograms/views.xml
  195. +0 −29 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/uncaughtException.jspx
  196. +0 −24 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/views/views.xml
  197. +0 −94 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/WEB-INF/web.xml
  198. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/add.png
  199. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/banner-graphic.png
  200. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/create.png
  201. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/delete.png
  202. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/en.png
  203. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/es.png
  204. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/favicon.ico
  205. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/list.png
  206. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/resultset_first.png
  207. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/resultset_last.png
  208. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/resultset_next.png
  209. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/resultset_previous.png
  210. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/show.png
  211. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/springsource-logo.png
  212. BIN chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/images/update.png
  213. +0 −16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/js/jquery-1.5.1.min.js
  214. +0 −369 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/styles/alt.css
  215. +0 −373 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/webapp/styles/standard.css
  216. +0 −8 ...-mvc/coursemanager-ajax/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand.java
  217. +0 −15 ...vc/coursemanager-ajax/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand.java
  218. +0 −7 ...oursemanager-ajax/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand.java
  219. +0 −7 ...mvc/coursemanager-ajax/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand.java
  220. +0 −71 .../coursemanager-ajax/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest.java
  221. +0 −7 ...web-mvc/coursemanager-ajax/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand.java
  222. +0 −34 ...-mvc/coursemanager-ajax/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest.java
  223. +0 −7 ...semanager-ajax/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand.java
  224. +0 −34 ...anager-ajax/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest.java
  225. 0 ...orks}/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/TestDriveController.java
  226. +1 −5 ...-gwt/src/main/java/org/rooinaction/coursemanager/client/managed/ui/OfferingMobileDetailsView.java
  227. +0 −4 ...ger-gwt/src/main/java/org/rooinaction/coursemanager/client/managed/ui/TagMobileDetailsView.ui.xml
  228. +0 −33 ...r-web-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Address.java
  229. +0 −82 ...er-web-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Course.java
  230. +0 −23 ...eb-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Instructor.java
  231. +0 −71 ...-web-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Offering.java
  232. +0 −92 ...er-web-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Person.java
  233. +0 −52 ...-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Registration.java
  234. +0 −96 ...r-web-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Student.java
  235. +0 −41 ...other-web-frameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/Tag.java
  236. +0 −26 ...ameworks/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram.java
  237. +0 −63 ...oursemanager-gwt/src/main/java/org/rooinaction/coursemanager/web/gwt/proxies/InstructorProxy.java
  238. +0 −76 ...s/coursemanager-gwt/src/main/java/org/rooinaction/coursemanager/web/gwt/proxies/StudentProxy.java
  239. +0 −7 chapter-07-other-web-frameworks/coursemanager-gwt/src/main/webapp/WEB-INF/views/testdrive/views.xml
  240. +0 −10 ...other-web-frameworks/coursemanager-gwt/src/main/webapp/WEB-INF/views/trainingprograms/create.jspx
  241. +0 −8 ...7-other-web-frameworks/coursemanager-gwt/src/main/webapp/WEB-INF/views/trainingprograms/show.jspx
  242. +0 −9 ...other-web-frameworks/coursemanager-gwt/src/main/webapp/WEB-INF/views/trainingprograms/update.jspx
  243. +0 −16 ...7-other-web-frameworks/coursemanager-gwt/src/main/webapp/WEB-INF/views/trainingprograms/views.xml
  244. +4 −4 chapter-07-other-web-frameworks/coursemanager-gwt/src/main/webapp/WEB-INF/web.xml
  245. BIN chapter-07-other-web-frameworks/coursemanager-gwt/src/main/webapp/images/add.png
  246. BIN chapter-07-other-web-frameworks/coursemanager-gwt/src/main/webapp/images/banner-graphic.png
  247. BIN chapter-07-other-web-frameworks/coursemanager-gwt/src/main/webapp/images/create.png
  248. BIN chapter-07-other-web-frameworks/coursemanager-gwt/src/main/webapp/images/es.png
  249. BIN chapter-07-other-web-frameworks/coursemanager-gwt/src/main/webapp/images/favicon.ico
  250. +0 −8 ...works/coursemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand.java
  251. +0 −15 ...rks/coursemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand.java
  252. +0 −7 ...coursemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand.java
  253. +0 −7 ...orks/coursemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand.java
  254. +0 −71 ...s/coursemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest.java
  255. +0 −7 ...ameworks/coursemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand.java
  256. +0 −34 ...works/coursemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest.java
  257. +0 −7 ...rsemanager-gwt/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand.java
  258. +0 −34 ...manager-gwt/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest.java
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/dbex.lck
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/log/log1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c10.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c101.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c111.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c121.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c130.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c141.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c150.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c161.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c171.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c180.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c191.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1a1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1b1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1c0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1d1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1e0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c1f1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c20.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c200.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c211.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c221.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c230.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c241.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c251.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c260.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c271.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c281.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c290.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2a1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2b1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2c1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2d0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2e1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c2f0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c300.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c31.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c311.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c321.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c331.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c340.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c351.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c361.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c371.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c380.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c391.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3a1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3b1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3c0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3d1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3e1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c3f1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c400.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c41.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c411.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c421.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c430.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c441.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c451.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c461.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c490.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c4a1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c51.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c81.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c90.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/ca1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cb1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cc0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cd1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/ce1.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cf0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d5f0.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d601.dat
Binary file not shown.
View
BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d630.dat
Binary file not shown.
View
22 chapter-02-getting-started/taskmanager-noroo/taskmanager/service.properties
@@ -1,22 +0,0 @@
-#/Users/kenrimple/git-repositories/spring-roo-in-action-examples/chapter-02/taskmanager-new/taskmanager
-# ********************************************************************
-# *** Please do NOT edit this file. ***
-# *** CHANGING THE CONTENT OF THIS FILE MAY CAUSE DATA CORRUPTION. ***
-# ********************************************************************
-#Sun Nov 13 11:12:29 EST 2011
-SysschemasIndex2Identifier=225
-SyscolumnsIdentifier=144
-SysconglomeratesIndex1Identifier=49
-SysconglomeratesIdentifier=32
-SyscolumnsIndex2Identifier=177
-SysschemasIndex1Identifier=209
-SysconglomeratesIndex3Identifier=81
-SystablesIndex2Identifier=129
-SyscolumnsIndex1Identifier=161
-derby.serviceProtocol=org.apache.derby.database.Database
-SysschemasIdentifier=192
-derby.storage.propertiesId=16
-SysconglomeratesIndex2Identifier=65
-derby.serviceLocale=en_US
-SystablesIdentifier=96
-SystablesIndex1Identifier=113
View
BIN ...askmanager-noroo/taskmanager/seg0/c60.dat → ...rted/taskmanager/taskmanager/seg0/c60.dat
Binary file not shown.
View
BIN ...askmanager-noroo/taskmanager/seg0/c71.dat → ...rted/taskmanager/taskmanager/seg0/c71.dat
Binary file not shown.
View
10 chapter-04-jpa-advanced/coursemanager/src/main/resources/META-INF/spring/database.properties
@@ -1,6 +1,6 @@
-#Updated at Sun Nov 20 16:25:35 EST 2011
-#Sun Nov 20 16:25:35 EST 2011
+#Updated at Sat Apr 07 16:27:30 EDT 2012
+#Sat Apr 07 16:27:30 EDT 2012
database.password=
-database.url=jdbc\:mysql\://localhost\:3306/coursemgrch4
-database.username=root
-database.driverClassName=com.mysql.jdbc.Driver
+database.url=jdbc\:hsqldb\:file\:coursemanager-chapter-04;shutdown\=true
+database.username=sa
+database.driverClassName=org.hsqldb.jdbcDriver
View
17 chapter-05-web-mvc/coursemanager/coursemanager-chapter-05.properties
@@ -1,17 +0,0 @@
-#HSQL Database Engine 1.8.0.10
-#Sat Dec 31 13:28:45 EST 2011
-hsqldb.script_format=0
-runtime.gc_interval=0
-sql.enforce_strict_size=false
-hsqldb.cache_size_scale=8
-readonly=false
-hsqldb.nio_data_file=true
-hsqldb.cache_scale=14
-version=1.8.0
-hsqldb.default_table_type=memory
-hsqldb.cache_file_scale=1
-hsqldb.log_size=200
-modified=no
-hsqldb.cache_version=1.7.0
-hsqldb.original_version=1.8.0
-hsqldb.compatible_version=1.8.0
View
22 chapter-05-web-mvc/coursemanager/coursemanager-chapter-05.script
@@ -1,22 +0,0 @@
-CREATE SCHEMA PUBLIC AUTHORIZATION DBA
-CREATE MEMORY TABLE COURSE(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,COST NUMERIC NOT NULL,COURSE_TYPE VARCHAR(255) NOT NULL,DESCRIPTION VARCHAR(1000) NOT NULL,MAX_CAPACITY INTEGER NOT NULL,NAME VARCHAR(60) NOT NULL,VERSION INTEGER,TRAINING_PROGRAM BIGINT)
-CREATE MEMORY TABLE INSTRUCTOR(ID BIGINT NOT NULL PRIMARY KEY,ADDRESS_LINE1 VARCHAR(60) NOT NULL,ADDRESS_LINE2 VARCHAR(60),CITY VARCHAR(40) NOT NULL,EMAIL_ADDRESS VARCHAR(80) NOT NULL,FIRST_NAME VARCHAR(30),LAST_NAME VARCHAR(30) NOT NULL,MIDDLE_NAME_OR_INITIAL VARCHAR(30),POSTAL_CODE VARCHAR(10) NOT NULL,STATE_CODE VARCHAR(2) NOT NULL,VERSION INTEGER,ACTIVE BOOLEAN NOT NULL,TAX_NUMBER VARCHAR(9) NOT NULL)
-CREATE MEMORY TABLE OFFERING(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,RUN_DATE TIMESTAMP,VERSION INTEGER,COURSE BIGINT,INSTRUCTOR BIGINT,CONSTRAINT FKD2311006A8423C66 FOREIGN KEY(INSTRUCTOR) REFERENCES INSTRUCTOR(ID),CONSTRAINT FKD23110069CBA5162 FOREIGN KEY(COURSE) REFERENCES COURSE(ID))
-CREATE MEMORY TABLE REGISTRATION(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,ATTENDED BOOLEAN NOT NULL,PAYMENT_MADE BOOLEAN,VERSION INTEGER,OFFERING BIGINT,STUDENT BIGINT,CONSTRAINT FKAF83E8B927B71638 FOREIGN KEY(OFFERING) REFERENCES OFFERING(ID))
-CREATE MEMORY TABLE STUDENT(ID BIGINT NOT NULL PRIMARY KEY,ADDRESS_LINE1 VARCHAR(60) NOT NULL,ADDRESS_LINE2 VARCHAR(60),CITY VARCHAR(40) NOT NULL,EMAIL_ADDRESS VARCHAR(80) NOT NULL,FIRST_NAME VARCHAR(30),LAST_NAME VARCHAR(30) NOT NULL,MIDDLE_NAME_OR_INITIAL VARCHAR(30),POSTAL_CODE VARCHAR(10) NOT NULL,STATE_CODE VARCHAR(2) NOT NULL,VERSION INTEGER,DIETARY_RESTRICTIONS VARCHAR(30),EMERGENCY_CONTACT_INFO VARCHAR(80) NOT NULL,EMERGENCY_CONTACT_NAME VARCHAR(30) NOT NULL)
-CREATE MEMORY TABLE TAG(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,DESCRIPTION VARCHAR(250) NOT NULL,TAG VARCHAR(25) NOT NULL,VERSION INTEGER)
-CREATE MEMORY TABLE TAG_ASSOCIATIONS(TAG_ID BIGINT NOT NULL,COURSE_ID BIGINT NOT NULL,PRIMARY KEY(TAG_ID,COURSE_ID),CONSTRAINT FK36A089744D64906 FOREIGN KEY(COURSE_ID) REFERENCES COURSE(ID),CONSTRAINT FK36A089724D7F1CE FOREIGN KEY(TAG_ID) REFERENCES TAG(ID))
-CREATE MEMORY TABLE TRAINING_PROGRAM(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,NAME VARCHAR(255),VERSION INTEGER)
-CREATE MEMORY TABLE HIBERNATE_SEQUENCES(SEQUENCE_NAME VARCHAR(255),SEQUENCE_NEXT_HI_VALUE INTEGER)
-ALTER TABLE COURSE ADD CONSTRAINT FKAF42E01BFFCA38BD FOREIGN KEY(TRAINING_PROGRAM) REFERENCES TRAINING_PROGRAM(ID)
-ALTER TABLE REGISTRATION ADD CONSTRAINT FKAF83E8B9A85A98CA FOREIGN KEY(STUDENT) REFERENCES STUDENT(ID)
-ALTER TABLE COURSE ALTER COLUMN ID RESTART WITH 2
-ALTER TABLE OFFERING ALTER COLUMN ID RESTART WITH 1
-ALTER TABLE REGISTRATION ALTER COLUMN ID RESTART WITH 1
-ALTER TABLE TAG ALTER COLUMN ID RESTART WITH 1
-ALTER TABLE TRAINING_PROGRAM ALTER COLUMN ID RESTART WITH 1
-CREATE USER SA PASSWORD ""
-GRANT DBA TO SA
-SET WRITE_DELAY 10
-SET SCHEMA PUBLIC
-INSERT INTO COURSE VALUES(1,100,'SEMINAR','one',100,'one',0,NULL)
View
36 chapter-06-advanced-web-mvc/coursemanager-ajax/.roo-dbre
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!--WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.--><!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database_3_3.dtd">
-
-<database name="coursemgrch04" package="org.rooina.coursemanager.model">
- <table name="invoice">
- <column name="invoice_id" primaryKey="true" required="true" size="10" type="4,INT"/>
- <column name="amount" primaryKey="false" required="true" size="7,2" type="3,DECIMAL"/>
- <column name="due_date" primaryKey="false" required="true" size="19" type="93,DATETIME"/>
- <column name="student_name" primaryKey="false" required="true" size="80" type="12,VARCHAR"/>
- <column name="email_address" primaryKey="false" required="true" size="80" type="12,VARCHAR"/>
- <foreign-key foreignTable="payment" name="fk_payment_invoice1" onDelete="none" onUpdate="none">
- <option key="exported" value="true"/>
- <reference foreign="invoice_id" local="invoice_id"/>
- </foreign-key>
- <unique name="PRIMARY">
- <unique-column name="invoice_id"/>
- </unique>
- </table>
- <table name="payment">
- <column name="payment_id" primaryKey="true" required="true" size="10" type="4,INT"/>
- <column name="amount" primaryKey="false" required="true" size="7,2" type="3,DECIMAL"/>
- <column name="payment_date" primaryKey="false" required="true" size="19" type="93,DATETIME"/>
- <column name="invoice_id" primaryKey="true" required="true" size="10" type="4,INT"/>
- <foreign-key foreignTable="invoice" name="fk_payment_invoice1" onDelete="none" onUpdate="none">
- <option key="exported" value="false"/>
- <reference foreign="invoice_id" local="invoice_id"/>
- </foreign-key>
- <unique name="PRIMARY">
- <unique-column name="payment_id"/>
- <unique-column name="invoice_id"/>
- </unique>
- <index name="fk_payment_invoice1">
- <index-column name="invoice_id"/>
- </index>
- </table>
-</database>
View
455 chapter-06-advanced-web-mvc/coursemanager-ajax/pom.xml
@@ -1,455 +0,0 @@
-<?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>org.rooinaction.coursemanager</groupId>
- <artifactId>coursemanager-chapter-06-ajax</artifactId>
- <packaging>war</packaging>
- <version>0.1.0.BUILD-SNAPSHOT</version>
- <name>coursemanager-chapter-06-ajax</name>
- <properties>
- <aspectj.version>1.6.12.M2</aspectj.version>
- <java.version>1.6</java.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <roo.version>1.2.0.RELEASE</roo.version>
- <slf4j.version>1.6.2</slf4j.version>
- <spring.version>3.1.0.RELEASE</spring.version>
- </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>
- </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.9</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>org.aspectj</groupId>
- <artifactId>aspectjweaver</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.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- <version>3.0.1</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>
- </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.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>3.6.8.Final</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>3.6.8.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.1.Final</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-validator</artifactId>
- <version>4.2.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.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>
- </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>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-webmvc</artifactId>
- <version>${spring.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.webflow</groupId>
- <artifactId>spring-js-resources</artifactId>
- <version>2.2.1.RELEASE</version>
- </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>
- </dependency>
- <dependency>
- <groupId>javax.servlet.jsp.jstl</groupId>
- <artifactId>jstl-api</artifactId>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>org.glassfish.web</groupId>
- <artifactId>jstl-impl</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>
- <dependency>
- <groupId>javax.servlet.jsp</groupId>
- <artifactId>jsp-api</artifactId>
- <version>2.1</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>1.4</version>
- </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>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.18</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.1.1</version>
- <!-- <configuration> <webXml>target/web.xml</webXml> </configuration> -->
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <encoding>${project.build.sourceEncoding}</encoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>aspectj-maven-plugin</artifactId>
- <version>1.2</version>
- <!-- NB: do not use 1.3 or 1.3.x due to MASPECTJ-90 and do not use 1.4 due to declare parents issue -->
- <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>${java.version}</source>
- <target>${java.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <encoding>${project.build.sourceEncoding}</encoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.9</version>
- <configuration>
- <printSummary>false</printSummary>
- <redirectTestOutputToFile>true</redirectTestOutputToFile>
- <excludes>
- <exclude>**/*_Roo_*</exclude>
- </excludes>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2.1</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.7</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.1</version>
- </plugin>
- <plugin>
- <groupId>org.mortbay.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <version>8.0.1.v20110908</version>
- <configuration>
- <webAppConfig>
- <contextPath>/${project.name}</contextPath>
- </webAppConfig>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
View
21 chapter-06-advanced-web-mvc/coursemanager-ajax/readme.txt
@@ -1,21 +0,0 @@
-Spring AJAX example - DOJO
-----------------------------------------------------
-
-This example project uses Dojo and Spring MVC to
-provide an AJAX version of the Course scaffold.
-
-We did the following:
-
-1. Generated the scaffold
-2. Pushed-in all methods of the CourseController aspect
-3. Replaced the views with the Dojo/Ajax versions
-4. Added the @RooJson annotation to the Course object
-5. Used Dojo in replacement views to render and perform
- activities. The edit/update forms use Dojo and share
- the same form fields, using nested tiles (see the
- views.xml file in the courses view directory).
-
-Enjoy,
-
-Ken
-
View
33 ...web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Address.java
@@ -1,33 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import javax.persistence.Embeddable;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.serializable.RooSerializable;
-
-@Embeddable
-@RooSerializable
-@RooJavaBean
-public class Address {
-
- @NotNull
- @Size(min = 1, max = 60)
- private String addressLine1;
-
- @Size(min = 1, max = 60)
- private String addressLine2;
-
- @NotNull
- @Size(min = 1, max = 40)
- private String city;
-
- @NotNull
- @Size(min = 2, max = 2)
- private String stateCode;
-
- @NotNull
- @Size(min = 1, max = 10)
- private String postalCode;
-
-}
View
84 ...-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Course.java
@@ -1,84 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import java.math.BigDecimal;
-import java.util.HashSet;
-import java.util.Set;
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.EnumType;
-import javax.persistence.Enumerated;
-import javax.persistence.FetchType;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToMany;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToMany;
-import javax.validation.constraints.DecimalMax;
-import javax.validation.constraints.DecimalMin;
-import javax.validation.constraints.Digits;
-import javax.validation.constraints.Max;
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-import org.springframework.beans.factory.annotation.Value;
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.tostring.RooToString;
-
-@RooJavaBean
-@RooToString
-@RooJpaActiveRecord(finders = { "findCoursesByNameLike" })
-public class Course {
-
- @NotNull
- @Size(min = 1, max = 60)
- private String name;
-
- @NotNull
- @Size(max = 1000)
- private String description;
-
- @NotNull
- @DecimalMin("0.0")
- @DecimalMax("99999.00")
- @Digits(integer = 10, fraction = 2)
- private BigDecimal cost;
-
- @NotNull
- @Column(name = "max_capacity")
- @Min(1L)
- @Max(9999L)
- private Integer maximumCapacity;
-
- @NotNull
- @Enumerated(EnumType.STRING)
- @Column(name = "course_type")
- private CourseTypeEnum courseType;
-
- @ManyToOne(fetch = FetchType.EAGER)
- @JoinColumn(name = "training_program")
- private TrainingProgram trainingProgram;
-
- @ManyToMany(cascade = CascadeType.ALL, mappedBy = "courses")
- @Column(name = "tag_id")
- private Set<Tag> tags = new HashSet<Tag>();
-
- @OneToMany(mappedBy = "course", cascade = CascadeType.ALL)
- private Set<Offering> offerings = new HashSet<Offering>();
-
- @Value("1")
- private Integer duration;
-
- public void addTag(Tag tag) {
- tag.addCourse(this);
- }
-
- public void addOffering(Offering offering) {
- offering.setCourse(this);
- this.offerings.add(offering);
- }
-
- @Override
- public String toString() {
- return getName();
- }
-}
View
7 .../coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/CourseTypeEnum.java
@@ -1,7 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-
-public enum CourseTypeEnum {
-
- SEMINAR, CREDIT, CONTINUING_EDUCATION
-}
View
6 ...c/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/FrequencyType.java
@@ -1,6 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-public enum FrequencyType {
-
- WEEKLY, MONTHLY, BIWEEKLY
-}
View
23 ...-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Instructor.java
@@ -1,23 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import javax.persistence.Column;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.tostring.RooToString;
-
-@RooJavaBean
-@RooToString
-@RooJpaActiveRecord
-public class Instructor extends Person {
-
- @NotNull
- @Size(min = 9, max = 9)
- @Column(name = "tax_number")
- private String taxNumber;
-
- @NotNull
- private boolean active;
-}
View
71 ...eb-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Offering.java
@@ -1,71 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import java.util.Date;
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.EntityManager;
-import javax.persistence.ManyToOne;
-import javax.persistence.OneToMany;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-import javax.persistence.TypedQuery;
-import javax.validation.constraints.AssertTrue;
-
-import org.springframework.format.annotation.DateTimeFormat;
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.serializable.RooSerializable;
-import org.springframework.roo.addon.tostring.RooToString;
-
-@RooJavaBean
-@RooToString
-@RooSerializable
-@RooJpaActiveRecord
-public class Offering {
-
- @Temporal(TemporalType.TIMESTAMP)
- @DateTimeFormat(style = "S-")
- @Column(name = "run_date")
- private Date runDate;
-
- @ManyToOne(cascade = CascadeType.ALL)
- private Course course;
-
- @OneToMany(mappedBy = "offering", cascade = CascadeType.ALL)
- private Set<Registration> registrations = new HashSet<Registration>();
-
- @ManyToOne(cascade = CascadeType.ALL)
- private Instructor instructor;
-
- @AssertTrue(message="course.full.exception")
- public boolean isValid() {
- int maxCapacity = course.getMaximumCapacity();
- return registrations.size() <= maxCapacity;
- }
-
- public void addRegistration(Registration registration) {
- registration.setOffering(this);
- registrations.add(registration);
- }
-
- public long countStudentsRegisteredInOffering() {
- return entityManager().createQuery("select count(r) from Registration r " +
- "where r.offering = :offering",
- Long.class).setParameter("offering", this).getSingleResult();
- }
-
- public static TypedQuery<Offering> findOfferingsByCourseId(Long courseId) {
- if (courseId == null) throw new IllegalArgumentException("The courseID argument is required");
- EntityManager em = entityManager();
- TypedQuery<Offering> q = em.createQuery("SELECT Offering FROM Offering AS offering WHERE offering.course.id = :courseId", Offering.class);
- q.setParameter("courseId", courseId);
- return q;
- }
-
- public String toString() {
- return getRunDate().toString();
- }
-}
View
92 ...-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Person.java
@@ -1,92 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import javax.persistence.Column;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Transient;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.serializable.RooSerializable;
-import org.springframework.roo.addon.tostring.RooToString;
-
-@RooJavaBean
-@RooToString
-@RooSerializable
-@RooJpaActiveRecord(inheritanceType = "TABLE_PER_CLASS")
-public abstract class Person {
-
- @Size(min = 1, max = 30)
- @Column(name = "first_name")
- private String firstName;
-
- @Size(min = 1, max = 30)
- @Column(name = "middle_name_or_initial")
- private String middleNameOrInitial;
-
- @NotNull
- @Size(min = 1, max = 30)
- @Column(name = "last_name")
- private String lastName;
-
- @NotNull
- @Size(min = 1, max = 60)
- @Column(name = "address_line1")
- private String addressLine1;
-
- @Size(min = 1, max = 60)
- @Column(name = "address_line2")
- private String addressLine2;
-
- @NotNull
- @Size(min = 1, max = 40)
- private String city;
-
- @NotNull
- @Size(min = 2, max = 2)
- @Column(name = "state_code")
- private String stateCode;
-
- @NotNull
- @Size(min = 1, max = 10)
- @Column(name = "postal_code")
- private String postalCode;
-
- public Long getId() {
- return this.id;
- }
-
- @Id
- @GeneratedValue(strategy = GenerationType.TABLE)
- @Column(name = "id")
- private Long id;
-
- @NotNull
- @Size(max = 80)
- @Column(name = "email_address")
- private java.lang.String emailAddress;
-
- public void setId(Long id) {
- this.id = id;
- }
-
- @Transient
- public String getFullName() {
- StringBuffer sbName =
- new StringBuffer();
- sbName.append(lastName);
- if (firstName != null && firstName.length() > 0) {
- sbName.append(", ");
- sbName.append(firstName);
- }
- if (middleNameOrInitial != null && middleNameOrInitial.length() > 0) {
- if (firstName == null || firstName.length() > 0) sbName.append(",");
- sbName.append(" ");
- sbName.append(middleNameOrInitial);
- }
- return sbName.toString();
- }
-}
View
52 ...vc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Registration.java
@@ -1,52 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import java.util.Date;
-
-import javax.persistence.Column;
-import javax.persistence.EntityManager;
-import javax.persistence.ManyToOne;
-import javax.persistence.TypedQuery;
-
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.serializable.RooSerializable;
-import org.springframework.roo.addon.tostring.RooToString;
-
-@RooJavaBean
-@RooToString
-@RooSerializable
-@RooJpaActiveRecord(finders = { "findRegistrationsByStudentAndOffering", "findRegistrationsByStudentAndOfferingNot" })
-public class Registration {
-
- public Registration(Student student, Offering offering) {
- this.student = student;
- this.offering = offering;
- paymentMade = false;
- attended = false;
- }
-
- public Registration() {
- super();
- }
-
- @ManyToOne
- private Student student;
-
- @ManyToOne
- private Offering offering;
-
- @Column(name = "payment_made")
- private boolean paymentMade;
-
- private boolean attended;
-
- public static TypedQuery<Registration> findRegistrationsByStudent(Long studentId, Date startDate, Date endDate) {
- if (studentId == null) throw new IllegalArgumentException("The student id argument is required");
- EntityManager em = Registration.entityManager();
- TypedQuery<Registration> q = em.createQuery("SELECT DISTINCT r " + "FROM Registration AS r " + "WHERE r.student.id = :studentId " + "AND r.offering IN (SELECT o from Offering o " + " WHERE o.runDate between :start and :end)", Registration.class);
- q.setParameter("studentId", studentId);
- q.setParameter("start", startDate);
- q.setParameter("end", endDate);
- return q;
- }
-}
View
96 ...web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Student.java
@@ -1,96 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import javax.persistence.CascadeType;
-import javax.persistence.Column;
-import javax.persistence.EntityManager;
-import javax.persistence.OneToMany;
-import javax.persistence.TypedQuery;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.serializable.RooSerializable;
-import org.springframework.roo.addon.tostring.RooToString;
-import org.springframework.transaction.annotation.Transactional;
-
-@RooJavaBean
-@RooToString
-@RooJpaActiveRecord
-@RooSerializable
-public class Student extends Person {
-
- @NotNull
- @Size(min = 1, max = 30)
- @Column(length = 30, name = "emergency_contact_name", nullable = false)
- private String emergencyContactName;
-
- @NotNull
- @Size(min = 1, max = 80)
- @Column(name = "emergency_contact_info")
- private String emergencyContactInfo;
-
- @Size(max = 30)
- @Column(name = "dietary_restrictions")
- private String dietaryRestrictions;
-
- @OneToMany(mappedBy = "student", cascade = CascadeType.ALL)
- private Set<Registration> registrations = new HashSet<Registration>();
-
-@Transactional(readOnly=true)
-public static TypedQuery<Student> findStudentsNotInOffering(Offering o) {
- if (o == null) throw new IllegalArgumentException("The offering argument is required");
- EntityManager em = Student.entityManager();
- TypedQuery<Student> q = em.createQuery("SELECT student FROM Student AS student " +
- "WHERE student.id NOT IN " +
- "(select registration.student.id from Registration registration where registration.offering = :offering)",
- Student.class);
- q.setParameter("offering", o);
- return q;
-}
-
-@Transactional(readOnly=true)
-public static TypedQuery<Student> findStudentsNotRegisteredForOffering(Offering offering) {
- if (offering == null) throw new IllegalArgumentException("The offering argument is required");
- EntityManager em = Registration.entityManager();
- TypedQuery<Student> q = em.createQuery("SELECT student FROM Student AS student " +
- "WHERE student not in (select r.s from Registration as r where r.offering = :offering)", Student.class);
- q.setParameter("offering", offering);
- return q;
-}
-
-@Transactional(readOnly=true)
-public static TypedQuery<Student> findStudentsRegisteredForOffering(Offering offering) {
- if (offering == null) throw new IllegalArgumentException("The offering argument is required");
- EntityManager em = Registration.entityManager();
- TypedQuery<Student> q = em.createQuery("SELECT s FROM Student s INNER JOIN s.registrations r " +
- "WHERE r.offering = :offering", Student.class);
- q.setParameter("offering", offering);
- return q;
-}
-
-@Transactional(readOnly=true)
-public static TypedQuery<Student> findStudentsByName(String name) {
- if (name == null) throw new IllegalArgumentException("The student argument is required");
- EntityManager em = Student.entityManager();
- TypedQuery<Student> q = em.createQuery("SELECT student from Student as Student " +
- "WHERE student.lastName like :name", Student.class);
- q.setParameter("name", "%" + name + "%");
- return q;
-}
-
-@Transactional(readOnly=true)
-public static TypedQuery<Student> findStudentsByIdIn(List<Long> studentIds) {
- if (studentIds == null) throw new IllegalArgumentException("The studentIds argument is required");
-
- EntityManager em = Student.entityManager();
- TypedQuery<Student> q = em.createQuery("SELECT student from Student as Student " +
- "WHERE student.id in (:studentIds)", Student.class);
- q.setParameter("studentIds", studentIds);
- return q;
-}
-}
View
41 ...ced-web-mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/Tag.java
@@ -1,41 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.persistence.CascadeType;
-import javax.persistence.JoinColumn;
-import javax.persistence.JoinTable;
-import javax.persistence.ManyToMany;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
-
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.serializable.RooSerializable;
-import org.springframework.roo.addon.tostring.RooToString;
-
-@RooJavaBean
-@RooToString
-@RooJpaActiveRecord
-@RooSerializable
-public class Tag {
-
- @NotNull
- @Size(min = 1, max = 25)
- private String tag;
-
- @NotNull
- @Size(max = 250)
- private String description;
-
- @ManyToMany(cascade = CascadeType.ALL)
- @JoinTable(name = "tag_associations",
- joinColumns = { @JoinColumn(name="tag_id")} ,
- inverseJoinColumns = { @JoinColumn(name="course_id")})
- private Set<Course> courses = new HashSet<Course>();
- public void addCourse(Course c) {
- this.getCourses().add(c);
- c.getTags().add(this);
- }
-}
View
26 ...coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram.java
@@ -1,26 +0,0 @@
-package org.rooinaction.coursemanager.model;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.persistence.CascadeType;
-import javax.persistence.OneToMany;
-import javax.persistence.Table;
-
-import org.springframework.roo.addon.javabean.RooJavaBean;
-import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
-import org.springframework.roo.addon.serializable.RooSerializable;
-import org.springframework.roo.addon.tostring.RooToString;
-
-@RooJavaBean
-@RooToString
-@RooJpaActiveRecord
-@RooSerializable
-@Table(name="training_program")
-public class TrainingProgram {
-
- private String name;
-
- @OneToMany(cascade = CascadeType.ALL, mappedBy = "trainingProgram")
- private Set<Course> courses = new HashSet<Course>();
-}
View
18 .../main/java/org/rooinaction/coursemanager/web/ApplicationConversionServiceFactoryBean.java
@@ -1,18 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.springframework.format.FormatterRegistry;
-import org.springframework.format.support.FormattingConversionServiceFactoryBean;
-import org.springframework.roo.addon.web.mvc.controller.converter.RooConversionService;
-
-/**
- * A central place to register application converters and formatters.
- */
-@RooConversionService
-public class ApplicationConversionServiceFactoryBean extends FormattingConversionServiceFactoryBean {
-
- @Override
- protected void installFormatters(FormatterRegistry registry) {
- super.installFormatters(registry);
- // Register application converters and formatters
- }
-}
View
24 .../coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/CourseController.java
@@ -1,24 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.rooinaction.coursemanager.model.Course;
-import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.ResponseBody;
-
-@RequestMapping("/courses")
-@Controller
-@RooWebScaffold(path = "courses", formBackingObject = Course.class)
-public class CourseController {
-
- @RequestMapping("/costbyday")
- public@ResponseBody String calcCostByDay(@RequestParam String days) {
- try {
- int val = Integer.parseInt(days);
- return String.valueOf(val * 50);
- } catch (NumberFormatException e) {
- return "0";
- }
- }
-}
View
12 ...rsemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/InstructorController.java
@@ -1,12 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.rooinaction.coursemanager.model.Instructor;
-import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@RequestMapping("/instructors")
-@Controller
-@RooWebScaffold(path = "instructors", formBackingObject = Instructor.class)
-public class InstructorController {
-}
View
12 ...oursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/OfferingController.java
@@ -1,12 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.rooinaction.coursemanager.model.Offering;
-import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@RequestMapping("/offerings")
-@Controller
-@RooWebScaffold(path = "offerings", formBackingObject = Offering.class)
-public class OfferingController {
-}
View
12 ...emanager-ajax/src/main/java/org/rooinaction/coursemanager/web/RegistrationController.java
@@ -1,12 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.rooinaction.coursemanager.model.Registration;
-import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@RequestMapping("/registrations")
-@Controller
-@RooWebScaffold(path = "registrations", formBackingObject = Registration.class)
-public class RegistrationController {
-}
View
12 ...coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/StudentController.java
@@ -1,12 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.rooinaction.coursemanager.model.Student;
-import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@RequestMapping("/students")
-@Controller
-@RooWebScaffold(path = "students", formBackingObject = Student.class)
-public class StudentController {
-}
View
12 ...mvc/coursemanager-ajax/src/main/java/org/rooinaction/coursemanager/web/TagController.java
@@ -1,12 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.rooinaction.coursemanager.model.Tag;
-import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@RequestMapping("/tags")
-@Controller
-@RooWebScaffold(path = "tags", formBackingObject = Tag.class)
-public class TagController {
-}
View
12 ...nager-ajax/src/main/java/org/rooinaction/coursemanager/web/TrainingProgramController.java
@@ -1,12 +0,0 @@
-package org.rooinaction.coursemanager.web;
-
-import org.rooinaction.coursemanager.model.TrainingProgram;
-import org.springframework.roo.addon.web.mvc.controller.scaffold.RooWebScaffold;
-import org.springframework.stereotype.Controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-
-@RequestMapping("/trainingprograms")
-@Controller
-@RooWebScaffold(path = "trainingprograms", formBackingObject = TrainingProgram.class)
-public class TrainingProgramController {
-}
View
16 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/resources/META-INF/persistence.xml
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
-<persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL">
- <provider>org.hibernate.ejb.HibernatePersistence</provider>
- <properties>
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
- <!-- value="create" to build a new database on each run; value="update" to modify an existing database; value="create-drop" means the same as "create" but also drops tables when Hibernate closes; value="validate" makes no changes to the database -->
- <property name="hibernate.hbm2ddl.auto" value="update"/>
- <property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/>
- <property name="hibernate.connection.charSet" value="UTF-8"/>
- <!-- Uncomment the following two properties for JBoss only -->
- <!-- property name="hibernate.validator.apply_to_ddl" value="false" /-->
- <!-- property name="hibernate.validator.autoregister_listeners" value="false" /-->
- </properties>
- </persistence-unit>
-</persistence>
View
71 ...nced-web-mvc/coursemanager-ajax/src/main/resources/META-INF/spring/applicationContext.xml
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
- <!--
- This will automatically locate any and all property files you have
- within your classpath, provided they fall under the META-INF/spring
- directory. The located property files are parsed and their values can
- then be used within application context files in the form of
- ${propertyKey}.
- -->
- <context:property-placeholder location="classpath*:META-INF/spring/*.properties"/>
- <!--
- Turn on AspectJ @Configurable support. As a result, any time you
- instantiate an object, Spring will attempt to perform dependency
- injection on that object. This occurs for instantiation via the "new"
- keyword, as well as via reflection. This is possible because AspectJ
- is used to "weave" Roo-based applications at compile time. In effect
- this feature allows dependency injection of any object at all in your
- system, which is a very useful feature (without @Configurable you'd
- only be able to dependency inject objects acquired from Spring or
- subsequently presented to a specific Spring dependency injection
- method). Roo applications use this useful feature in a number of
- areas, such as @PersistenceContext injection into entities.
- -->
- <context:spring-configured/>
- <!--
- This declaration will cause Spring to locate every @Component,
- @Repository and @Service in your application. In practical terms this
- allows you to write a POJO and then simply annotate the new POJO as an
- @Service and Spring will automatically detect, instantiate and
- dependency inject your service at startup time. Importantly, you can
- then also have your new service injected into any other class that
- requires it simply by declaring a field for your service inside the
- relying class and Spring will inject it. Note that two exclude filters
- are declared. The first ensures that Spring doesn't spend time
- introspecting Roo-specific ITD aspects. The second ensures Roo doesn't
- instantiate your @Controller classes, as these should be instantiated
- by a web tier application context. Refer to web.xml for more details
- about the web tier application context setup services.
-
- Furthermore, this turns on @Autowired, @PostConstruct etc support. These
- annotations allow you to use common Spring and Java Enterprise Edition
- annotations in your classes without needing to do any special configuration.
- The most commonly used annotation is @Autowired, which instructs Spring to
- dependency inject an object into your class.
- -->
- <context:component-scan base-package="org.rooinaction.coursemanager">
- <context:exclude-filter expression=".*_Roo_.*" type="regex"/>
- <context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
- </context:component-scan>
- <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource">
- <property name="driverClassName" value="${database.driverClassName}"/>
- <property name="url" value="${database.url}"/>
- <property name="username" value="${database.username}"/>
- <property name="password" value="${database.password}"/>
- <property name="testOnBorrow" value="true"/>
- <property name="testOnReturn" value="true"/>
- <property name="testWhileIdle" value="true"/>
- <property name="timeBetweenEvictionRunsMillis" value="1800000"/>
- <property name="numTestsPerEvictionRun" value="3"/>
- <property name="minEvictableIdleTimeMillis" value="1800000"/>
- <property name="validationQuery" value="SELECT 1"/>
- </bean>
- <bean class="org.springframework.orm.jpa.JpaTransactionManager" id="transactionManager">
- <property name="entityManagerFactory" ref="entityManagerFactory"/>
- </bean>
- <tx:annotation-driven mode="aspectj" transaction-manager="transactionManager"/>
- <bean class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" id="entityManagerFactory">
- <property name="persistenceUnitName" value="persistenceUnit"/>
- <property name="dataSource" ref="dataSource"/>
- </bean>
-</beans>
View
17 chapter-06-advanced-web-mvc/coursemanager-ajax/src/main/resources/log4j.properties
@@ -1,17 +0,0 @@
-log4j.rootLogger=error, stdout
-
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-
-# Print the date in ISO 8601 format
-log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
-
-log4j.appender.R=org.apache.log4j.RollingFileAppender