Skip to content
This repository
Browse code

partial upgrade to roo 1.2.3.RELEASE

  • Loading branch information...
commit 0c3cedfe89ddcc1c9acc410b6939c2ad355ce2b8 1 parent fb9b781
Ken Rimple authored

Showing 579 changed files with 13,021 additions and 33 deletions. Show diff stats Hide diff stats

  1. +2 2 chapter-01-intro/pizzashop-activerecord/pom.xml
  2. +1 1  ...hop-activerecord/src/test/java/com/springsource/pizzashop/domain/BaseIntegrationTest_Roo_IntegrationTest.aj
  3. +1 1  ...izzashop-activerecord/src/test/java/com/springsource/pizzashop/domain/PizzaDataOnDemand_Roo_DataOnDemand.aj
  4. +1 1  ...op-activerecord/src/test/java/com/springsource/pizzashop/domain/PizzaIntegrationTest_Roo_IntegrationTest.aj
  5. +1 1  ...tiverecord/src/test/java/com/springsource/pizzashop/domain/PizzaOrderIntegrationTest_Roo_IntegrationTest.aj
  6. +1 1  ...-activerecord/src/test/java/com/springsource/pizzashop/domain/ToppingIntegrationTest_Roo_IntegrationTest.aj
  7. +1 1  chapter-01-intro/pizzashop-layered/pom.xml
  8. +1 1  ...izzashop-layered/src/test/java/com/springsource/pizzashop/domain/BaseIntegrationTest_Roo_IntegrationTest.aj
  9. +1 1  ...tro/pizzashop-layered/src/test/java/com/springsource/pizzashop/domain/PizzaDataOnDemand_Roo_DataOnDemand.aj
  10. +1 1  ...zzashop-layered/src/test/java/com/springsource/pizzashop/domain/PizzaIntegrationTest_Roo_IntegrationTest.aj
  11. +1 1  ...op-layered/src/test/java/com/springsource/pizzashop/domain/PizzaOrderIntegrationTest_Roo_IntegrationTest.aj
  12. +1 1  ...ashop-layered/src/test/java/com/springsource/pizzashop/domain/ToppingIntegrationTest_Roo_IntegrationTest.aj
  13. +5 5 chapter-02-getting-started/taskmanager-noroo/derby.log
  14. +5 5 chapter-02-getting-started/taskmanager/derby.log
  15. +2 2 chapter-02-getting-started/taskmanager/pom.xml
  16. +13 0 ...ter-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_Configurable.aj
  17. +26 0 chapter-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_JavaBean.aj
  18. +77 0 ...02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_Jpa_ActiveRecord.aj
  19. +43 0 chapter-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_Jpa_Entity.aj
  20. +16 0 chapter-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_ToString.aj
  21. +20 0 ...arted/taskmanager/src/main/java/org/rooinaction/taskmanager/repository/TaskRepository_Roo_Jpa_Repository.aj
  22. +47 0 ...etting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/service/TaskServiceImpl_Roo_Service.aj
  23. +19 0 ...02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/service/TaskService_Roo_Service.aj
  24. +56 0 .../main/java/org/rooinaction/taskmanager/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj
  25. +107 0 ...-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/web/TaskController_Roo_Controller.aj
  26. +13 0 ...ng-started/taskmanager/src/test/java/org/rooinaction/taskmanager/model/TaskDataOnDemand_Roo_Configurable.aj
  27. +107 0 ...ng-started/taskmanager/src/test/java/org/rooinaction/taskmanager/model/TaskDataOnDemand_Roo_DataOnDemand.aj
  28. +13 0 ...started/taskmanager/src/test/java/org/rooinaction/taskmanager/model/TaskIntegrationTest_Roo_Configurable.aj
  29. +128 0 ...rted/taskmanager/src/test/java/org/rooinaction/taskmanager/model/TaskIntegrationTest_Roo_IntegrationTest.aj
  30. +1 1  chapter-03-jpa/coursemanager-repository/coursemanagerch3.properties
  31. +1 1  chapter-03-jpa/coursemanager-repository/pom.xml
  32. +61 0 ...er-03-jpa/coursemanager-repository/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_JavaBean.aj
  33. +43 0 ...-03-jpa/coursemanager-repository/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_Entity.aj
  34. +16 0 ...er-03-jpa/coursemanager-repository/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_ToString.aj
  35. +20 0 ...ager-repository/src/main/java/org/rooinaction/coursemanager/model/db/CourseRepository_Roo_Jpa_Repository.aj
  36. +13 0 ...manager-repository/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_Configurable.aj
  37. +130 0 ...manager-repository/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_DataOnDemand.aj
  38. +13 0 ...ager-repository/src/test/java/org/rooinaction/coursemanager/model/CourseIntegrationTest_Roo_Configurable.aj
  39. +124 0 ...r-repository/src/test/java/org/rooinaction/coursemanager/model/CourseIntegrationTest_Roo_IntegrationTest.aj
  40. +1 1  chapter-03-jpa/coursemanager/coursemanagerch3.properties
  41. +1 1  chapter-03-jpa/coursemanager/pom.xml
  42. +13 0 chapter-03-jpa/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Configurable.aj
  43. +27 0 chapter-03-jpa/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Finder.aj
  44. +61 0 chapter-03-jpa/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_JavaBean.aj
  45. +77 0 chapter-03-jpa/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_ActiveRecord.aj
  46. +43 0 chapter-03-jpa/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_Entity.aj
  47. +16 0 chapter-03-jpa/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_ToString.aj
  48. +13 0 ...-jpa/coursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_Configurable.aj
  49. +125 0 ...-jpa/coursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_DataOnDemand.aj
  50. +13 0 ...a/coursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseIntegrationTest_Roo_Configurable.aj
  51. +121 0 ...oursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseIntegrationTest_Roo_IntegrationTest.aj
  52. +1 1  chapter-04-jpa-advanced/coursemanager/pom.xml
  53. +50 0 ...ter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_JavaBean.aj
  54. +15 0 ...04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_Serializable.aj
  55. +13 0 ...-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Configurable.aj
  56. +27 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Finder.aj
  57. +80 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_JavaBean.aj
  58. +77 0 ...jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_ActiveRecord.aj
  59. +43 0 ...er-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_Entity.aj
  60. +13 0 ...jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Configurable.aj
  61. +26 0 ...-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_JavaBean.aj
  62. +37 0 ...advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_ActiveRecord.aj
  63. +13 0 ...4-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_Entity.aj
  64. +16 0 ...-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_ToString.aj
  65. +13 0 ...04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Invoice_Roo_Configurable.aj
  66. +77 0 ...pa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Invoice_Roo_Jpa_ActiveRecord.aj
  67. +33 0 ...r-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Invoice_Roo_Jpa_Entity.aj
  68. +16 0 ...ter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Invoice_Roo_ToString.aj
  69. +13 0 ...4-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Configurable.aj
  70. +47 0 ...er-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_JavaBean.aj
  71. +77 0 ...a-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Jpa_ActiveRecord.aj
  72. +43 0 ...-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Jpa_Entity.aj
  73. +15 0 ...4-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Serializable.aj
  74. +13 0 ...-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/PaymentPK_Roo_Configurable.aj
  75. +30 0 ...04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/PaymentPK_Roo_Identifier.aj
  76. +31 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/PaymentPK_Roo_Json.aj
  77. +15 0 ...-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/PaymentPK_Roo_Serializable.aj
  78. +13 0 ...04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Payment_Roo_Configurable.aj
  79. +78 0 ...pa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Payment_Roo_Jpa_ActiveRecord.aj
  80. +29 0 ...r-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Payment_Roo_Jpa_Entity.aj
  81. +16 0 ...ter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Payment_Roo_ToString.aj
  82. +13 0 ...-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Configurable.aj
  83. +82 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_JavaBean.aj
  84. +78 0 ...jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Jpa_ActiveRecord.aj
  85. +31 0 ...er-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Jpa_Entity.aj
  86. +15 0 ...-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Serializable.aj
  87. +16 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_ToString.aj
  88. +13 0 ...a-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Configurable.aj
  89. +34 0 ...-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Finder.aj
  90. +44 0 ...4-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_JavaBean.aj
  91. +77 0 ...vanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Jpa_ActiveRecord.aj
  92. +43 0 ...jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Jpa_Entity.aj
  93. +15 0 ...a-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Serializable.aj
  94. +16 0 ...4-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_ToString.aj
  95. +13 0 ...04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Configurable.aj
  96. +44 0 ...ter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_JavaBean.aj
  97. +37 0 ...pa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Jpa_ActiveRecord.aj
  98. +13 0 ...r-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Jpa_Entity.aj
  99. +15 0 ...04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Serializable.aj
  100. +16 0 ...ter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_ToString.aj
  101. +13 0 ...ter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Configurable.aj
  102. +36 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_JavaBean.aj
  103. +77 0 ...04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Jpa_ActiveRecord.aj
  104. +43 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Jpa_Entity.aj
  105. +15 0 ...ter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Serializable.aj
  106. +16 0 chapter-04-jpa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_ToString.aj
  107. +13 0 ...dvanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Configurable.aj
  108. +28 0 ...pa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_JavaBean.aj
  109. +77 0 ...ced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Jpa_ActiveRecord.aj
  110. +43 0 ...-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Jpa_Entity.aj
  111. +15 0 ...dvanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Serializable.aj
  112. +16 0 ...pa-advanced/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_ToString.aj
  113. +13 0 ...nced/coursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_Configurable.aj
  114. +127 0 ...nced/coursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_DataOnDemand.aj
  115. +13 0 ...ed/coursemanager/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand_Roo_Configurable.aj
  116. +104 0 ...ed/coursemanager/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand_Roo_DataOnDemand.aj
  117. +13 0 ...oursemanager/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand_Roo_Configurable.aj
  118. +104 0 ...oursemanager/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand_Roo_DataOnDemand.aj
  119. +13 0 ...ced/coursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand_Roo_Configurable.aj
  120. +191 0 ...ced/coursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand_Roo_DataOnDemand.aj
  121. +13 0 .../coursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest_Roo_Configurable.aj
  122. +121 0 ...ursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest_Roo_IntegrationTest.aj
  123. +13 0 ...dvanced/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand_Roo_Configurable.aj
  124. +101 0 ...dvanced/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand_Roo_DataOnDemand.aj
  125. +13 0 ...nced/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest_Roo_Configurable.aj
  126. +121 0 ...d/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest_Roo_IntegrationTest.aj
  127. +13 0 ...semanager/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand_Roo_Configurable.aj
  128. +89 0 ...semanager/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand_Roo_DataOnDemand.aj
  129. +13 0 ...anager/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest_Roo_Configurable.aj
  130. +121 0 ...ger/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest_Roo_IntegrationTest.aj
  131. +1 1  chapter-05-web-mvc/coursemanager-service-and-repo/pom.xml
  132. +20 0 ...ager-service-and-repo/src/main/java/org/rooinaction/coursemanager/db/CourseRepository_Roo_Jpa_Repository.aj
  133. +50 0 ...vc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_JavaBean.aj
  134. +15 0 ...oursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_Serializable.aj
  135. +13 0 ...coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Configurable.aj
  136. +27 0 ...b-mvc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Finder.aj
  137. +80 0 ...mvc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_JavaBean.aj
  138. +77 0 ...semanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_ActiveRecord.aj
  139. +43 0 ...c/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_Entity.aj
  140. +13 0 ...semanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Configurable.aj
  141. +26 0 ...coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_JavaBean.aj
  142. +37 0 ...nager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_ActiveRecord.aj
  143. +13 0 ...ursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_Entity.aj
  144. +16 0 ...coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_ToString.aj
  145. +13 0 ...ursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Configurable.aj
  146. +47 0 ...c/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_JavaBean.aj
  147. +77 0 ...manager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Jpa_ActiveRecord.aj
  148. +43 0 ...coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Jpa_Entity.aj
  149. +15 0 ...ursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Serializable.aj
  150. +13 0 ...coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Configurable.aj
  151. +82 0 ...mvc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_JavaBean.aj
  152. +78 0 ...semanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Jpa_ActiveRecord.aj
  153. +31 0 ...c/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Jpa_Entity.aj
  154. +15 0 ...coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Serializable.aj
  155. +16 0 ...mvc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_ToString.aj
  156. +13 0 ...manager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Configurable.aj
  157. +34 0 ...coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Finder.aj
  158. +44 0 ...ursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_JavaBean.aj
  159. +77 0 ...ger-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Jpa_ActiveRecord.aj
  160. +43 0 ...semanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Jpa_Entity.aj
  161. +15 0 ...manager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Serializable.aj
  162. +16 0 ...ursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_ToString.aj
  163. +13 0 ...oursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Configurable.aj
  164. +44 0 ...vc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_JavaBean.aj
  165. +37 0 ...emanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Jpa_ActiveRecord.aj
  166. +13 0 .../coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Jpa_Entity.aj
  167. +15 0 ...oursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Serializable.aj
  168. +16 0 ...vc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_ToString.aj
  169. +13 0 ...vc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Configurable.aj
  170. +36 0 ...eb-mvc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_JavaBean.aj
  171. +77 0 ...oursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Jpa_ActiveRecord.aj
  172. +43 0 ...-mvc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Jpa_Entity.aj
  173. +15 0 ...vc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Serializable.aj
  174. +16 0 ...eb-mvc/coursemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_ToString.aj
  175. +13 0 ...ager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Configurable.aj
  176. +28 0 ...emanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_JavaBean.aj
  177. +77 0 ...-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Jpa_ActiveRecord.aj
  178. +43 0 ...anager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Jpa_Entity.aj
  179. +15 0 ...ager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Serializable.aj
  180. +16 0 ...emanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_ToString.aj
  181. +51 0 ...nager-service-and-repo/src/main/java/org/rooinaction/coursemanager/service/CourseServiceImpl_Roo_Service.aj
  182. +19 0 ...semanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/service/CourseService_Roo_Service.aj
  183. +224 0 ...ain/java/org/rooinaction/coursemanager/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj
  184. +116 0 ...manager-service-and-repo/src/main/java/org/rooinaction/coursemanager/web/CourseController_Roo_Controller.aj
  185. +26 0 ...-service-and-repo/src/main/java/org/rooinaction/coursemanager/web/CourseController_Roo_Controller_Finder.aj
  186. +102 0 ...ger-service-and-repo/src/main/java/org/rooinaction/coursemanager/web/InstructorController_Roo_Controller.aj
  187. +121 0 ...nager-service-and-repo/src/main/java/org/rooinaction/coursemanager/web/OfferingController_Roo_Controller.aj
  188. +106 0 ...r-service-and-repo/src/main/java/org/rooinaction/coursemanager/web/RegistrationController_Roo_Controller.aj
  189. +104 0 ...anager-service-and-repo/src/main/java/org/rooinaction/coursemanager/web/StudentController_Roo_Controller.aj
  190. +108 0 ...rsemanager-service-and-repo/src/main/java/org/rooinaction/coursemanager/web/TagController_Roo_Controller.aj
  191. +108 0 ...ervice-and-repo/src/main/java/org/rooinaction/coursemanager/web/TrainingProgramController_Roo_Controller.aj
  192. +13 0 ...r-service-and-repo/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_Configurable.aj
  193. +140 0 ...r-service-and-repo/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_DataOnDemand.aj
  194. +13 0 ...service-and-repo/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand_Roo_Configurable.aj
  195. +104 0 ...service-and-repo/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand_Roo_DataOnDemand.aj
  196. +13 0 ...ice-and-repo/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand_Roo_Configurable.aj
  197. +104 0 ...ice-and-repo/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand_Roo_DataOnDemand.aj
  198. +13 0 ...-service-and-repo/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand_Roo_Configurable.aj
  199. +191 0 ...-service-and-repo/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand_Roo_DataOnDemand.aj
  200. +13 0 ...rvice-and-repo/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest_Roo_Configurable.aj
  201. +121 0 ...ce-and-repo/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest_Roo_IntegrationTest.aj
  202. +13 0 ...ager-service-and-repo/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand_Roo_Configurable.aj
  203. +101 0 ...ager-service-and-repo/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand_Roo_DataOnDemand.aj
  204. +13 0 ...r-service-and-repo/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest_Roo_Configurable.aj
  205. +121 0 ...ervice-and-repo/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest_Roo_IntegrationTest.aj
  206. +13 0 ...-and-repo/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand_Roo_Configurable.aj
  207. +89 0 ...-and-repo/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand_Roo_DataOnDemand.aj
  208. +13 0 ...d-repo/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest_Roo_Configurable.aj
  209. +121 0 ...epo/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest_Roo_IntegrationTest.aj
  210. +1 1  chapter-05-web-mvc/coursemanager/pom.xml
  211. +50 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_JavaBean.aj
  212. +15 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_Serializable.aj
  213. +13 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Configurable.aj
  214. +27 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Finder.aj
  215. +80 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_JavaBean.aj
  216. +77 0 ...r-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_ActiveRecord.aj
  217. +43 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_Entity.aj
  218. +13 0 ...r-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Configurable.aj
  219. +26 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_JavaBean.aj
  220. +37 0 ...-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_ActiveRecord.aj
  221. +13 0 ...ter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_Entity.aj
  222. +16 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_ToString.aj
  223. +13 0 ...ter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Configurable.aj
  224. +47 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_JavaBean.aj
  225. +77 0 ...05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Jpa_ActiveRecord.aj
  226. +43 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Jpa_Entity.aj
  227. +15 0 ...ter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Serializable.aj
  228. +13 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Configurable.aj
  229. +82 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_JavaBean.aj
  230. +78 0 ...r-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Jpa_ActiveRecord.aj
  231. +31 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Jpa_Entity.aj
  232. +15 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_Serializable.aj
  233. +16 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Person_Roo_ToString.aj
  234. +13 0 ...05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Configurable.aj
  235. +34 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Finder.aj
  236. +44 0 ...ter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_JavaBean.aj
  237. +77 0 ...eb-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Jpa_ActiveRecord.aj
  238. +43 0 ...r-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Jpa_Entity.aj
  239. +15 0 ...05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_Serializable.aj
  240. +16 0 ...ter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Registration_Roo_ToString.aj
  241. +13 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Configurable.aj
  242. +44 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_JavaBean.aj
  243. +37 0 ...-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Jpa_ActiveRecord.aj
  244. +13 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Jpa_Entity.aj
  245. +15 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_Serializable.aj
  246. +16 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Student_Roo_ToString.aj
  247. +13 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Configurable.aj
  248. +36 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_JavaBean.aj
  249. +77 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Jpa_ActiveRecord.aj
  250. +43 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Jpa_Entity.aj
  251. +15 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_Serializable.aj
  252. +16 0 chapter-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Tag_Roo_ToString.aj
  253. +13 0 ...web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Configurable.aj
  254. +28 0 ...-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_JavaBean.aj
  255. +77 0 ...mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Jpa_ActiveRecord.aj
  256. +43 0 ...5-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Jpa_Entity.aj
  257. +15 0 ...web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_Serializable.aj
  258. +16 0 ...-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram_Roo_ToString.aj
  259. +219 0 ...ain/java/org/rooinaction/coursemanager/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj
  260. +111 0 ...05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/web/CourseController_Roo_Controller.aj
  261. +26 0 ...mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/web/CourseController_Roo_Controller_Finder.aj
  262. +102 0 ...eb-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/web/InstructorController_Roo_Controller.aj
  263. +117 0 ...-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/web/OfferingController_Roo_Controller.aj
  264. +106 0 ...-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/web/RegistrationController_Roo_Controller.aj
  265. +104 0 ...5-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/web/StudentController_Roo_Controller.aj
  266. +104 0 ...er-05-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/web/TagController_Roo_Controller.aj
  267. +104 0 ...c/coursemanager/src/main/java/org/rooinaction/coursemanager/web/TrainingProgramController_Roo_Controller.aj
  268. +13 0 ...-mvc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_Configurable.aj
  269. +132 0 ...-mvc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand_Roo_DataOnDemand.aj
  270. +13 0 ...vc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand_Roo_Configurable.aj
  271. +104 0 ...vc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand_Roo_DataOnDemand.aj
  272. +13 0 ...oursemanager/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand_Roo_Configurable.aj
  273. +104 0 ...oursemanager/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand_Roo_DataOnDemand.aj
  274. +13 0 ...mvc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand_Roo_Configurable.aj
  275. +191 0 ...mvc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand_Roo_DataOnDemand.aj
  276. +13 0 .../coursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest_Roo_Configurable.aj
  277. +121 0 ...ursemanager/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest_Roo_IntegrationTest.aj
  278. +13 0 ...web-mvc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand_Roo_Configurable.aj
  279. +101 0 ...web-mvc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand_Roo_DataOnDemand.aj
  280. +13 0 ...-mvc/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest_Roo_Configurable.aj
  281. +121 0 ...c/coursemanager/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest_Roo_IntegrationTest.aj
  282. +13 0 ...semanager/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand_Roo_Configurable.aj
  283. +89 0 ...semanager/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand_Roo_DataOnDemand.aj
  284. +13 0 ...anager/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest_Roo_Configurable.aj
  285. +121 0 ...ger/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest_Roo_IntegrationTest.aj
  286. +1 1  chapter-06-advanced-web-mvc/coursemanager/pom.xml
  287. +50 0 ...06-advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_JavaBean.aj
  288. +15 0 ...dvanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Address_Roo_Serializable.aj
  289. +13 0 ...advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Configurable.aj
  290. +27 0 ...er-06-advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Finder.aj
  291. +80 0 ...-06-advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_JavaBean.aj
  292. +77 0 ...nced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_ActiveRecord.aj
  293. +43 0 ...6-advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Course_Roo_Jpa_Entity.aj
  294. +13 0 ...nced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Configurable.aj
  295. +26 0 ...advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_JavaBean.aj
  296. +37 0 ...-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_ActiveRecord.aj
  297. +13 0 ...vanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_Jpa_Entity.aj
  298. +16 0 ...advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Instructor_Roo_ToString.aj
  299. +13 0 ...vanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_Configurable.aj
  300. +47 0 ...6-advanced-web-mvc/coursemanager/src/main/java/org/rooinaction/coursemanager/model/Offering_Roo_JavaBean.aj
Sorry, we could not display the entire diff because too many files (579) changed.
4 chapter-01-intro/pizzashop-activerecord/pom.xml
@@ -10,7 +10,7 @@
10 10 <aspectj.version>1.6.12.M2</aspectj.version>
11 11 <java.version>1.6</java.version>
12 12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13   - <roo.version>1.2.2.RELEASE</roo.version>
  13 + <roo.version>1.2.3.RELEASE</roo.version>
14 14 <slf4j.version>1.6.2</slf4j.version>
15 15 <spring.version>3.1.0.RELEASE</spring.version>
16 16 </properties>
@@ -32,7 +32,7 @@
32 32 </repository>
33 33 <repository>
34 34 <id>EclipseLink Repo</id>
35   - <url>http://mirrors.ibiblio.org/pub/mirrors/eclipse/rt/eclipselink/maven.repo</url>
  35 + <url>http://download.eclipse.org/rt/eclipselink/maven.repo</url>
36 36 <name>EclipseLink Repo</name>
37 37 </repository>
38 38 </repositories>
2  ...-activerecord/src/test/java/com/springsource/pizzashop/domain/BaseIntegrationTest_Roo_IntegrationTest.aj
@@ -24,7 +24,7 @@ privileged aspect BaseIntegrationTest_Roo_IntegrationTest {
24 24 declare @type: BaseIntegrationTest: @Transactional;
25 25
26 26 @Autowired
27   - private BaseDataOnDemand BaseIntegrationTest.dod;
  27 + BaseDataOnDemand BaseIntegrationTest.dod;
28 28
29 29 @Test
30 30 public void BaseIntegrationTest.testCountBases() {
2  ...ashop-activerecord/src/test/java/com/springsource/pizzashop/domain/PizzaDataOnDemand_Roo_DataOnDemand.aj
@@ -26,7 +26,7 @@ privileged aspect PizzaDataOnDemand_Roo_DataOnDemand {
26 26 private List<Pizza> PizzaDataOnDemand.data;
27 27
28 28 @Autowired
29   - private BaseDataOnDemand PizzaDataOnDemand.baseDataOnDemand;
  29 + BaseDataOnDemand PizzaDataOnDemand.baseDataOnDemand;
30 30
31 31 public Pizza PizzaDataOnDemand.getNewTransientPizza(int index) {
32 32 Pizza obj = new Pizza();
2  ...activerecord/src/test/java/com/springsource/pizzashop/domain/PizzaIntegrationTest_Roo_IntegrationTest.aj
@@ -24,7 +24,7 @@ privileged aspect PizzaIntegrationTest_Roo_IntegrationTest {
24 24 declare @type: PizzaIntegrationTest: @Transactional;
25 25
26 26 @Autowired
27   - private PizzaDataOnDemand PizzaIntegrationTest.dod;
  27 + PizzaDataOnDemand PizzaIntegrationTest.dod;
28 28
29 29 @Test
30 30 public void PizzaIntegrationTest.testCountPizzas() {
2  ...erecord/src/test/java/com/springsource/pizzashop/domain/PizzaOrderIntegrationTest_Roo_IntegrationTest.aj
@@ -25,7 +25,7 @@ privileged aspect PizzaOrderIntegrationTest_Roo_IntegrationTest {
25 25 declare @type: PizzaOrderIntegrationTest: @Transactional;
26 26
27 27 @Autowired
28   - private PizzaOrderDataOnDemand PizzaOrderIntegrationTest.dod;
  28 + PizzaOrderDataOnDemand PizzaOrderIntegrationTest.dod;
29 29
30 30 @Test
31 31 public void PizzaOrderIntegrationTest.testCountPizzaOrders() {
2  ...tiverecord/src/test/java/com/springsource/pizzashop/domain/ToppingIntegrationTest_Roo_IntegrationTest.aj
@@ -24,7 +24,7 @@ privileged aspect ToppingIntegrationTest_Roo_IntegrationTest {
24 24 declare @type: ToppingIntegrationTest: @Transactional;
25 25
26 26 @Autowired
27   - private ToppingDataOnDemand ToppingIntegrationTest.dod;
  27 + ToppingDataOnDemand ToppingIntegrationTest.dod;
28 28
29 29 @Test
30 30 public void ToppingIntegrationTest.testCountToppings() {
2  chapter-01-intro/pizzashop-layered/pom.xml
@@ -10,7 +10,7 @@
10 10 <aspectj.version>1.6.12.M2</aspectj.version>
11 11 <java.version>1.6</java.version>
12 12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13   - <roo.version>1.2.2.RELEASE</roo.version>
  13 + <roo.version>1.2.3.RELEASE</roo.version>
14 14 <slf4j.version>1.6.2</slf4j.version>
15 15 <spring.version>3.1.0.RELEASE</spring.version>
16 16 </properties>
2  ...ashop-layered/src/test/java/com/springsource/pizzashop/domain/BaseIntegrationTest_Roo_IntegrationTest.aj
@@ -25,7 +25,7 @@ privileged aspect BaseIntegrationTest_Roo_IntegrationTest {
25 25 declare @type: BaseIntegrationTest: @Transactional;
26 26
27 27 @Autowired
28   - private BaseDataOnDemand BaseIntegrationTest.dod;
  28 + BaseDataOnDemand BaseIntegrationTest.dod;
29 29
30 30 @Autowired
31 31 BaseService BaseIntegrationTest.baseService;
2  .../pizzashop-layered/src/test/java/com/springsource/pizzashop/domain/PizzaDataOnDemand_Roo_DataOnDemand.aj
@@ -28,7 +28,7 @@ privileged aspect PizzaDataOnDemand_Roo_DataOnDemand {
28 28 private List<Pizza> PizzaDataOnDemand.data;
29 29
30 30 @Autowired
31   - private BaseDataOnDemand PizzaDataOnDemand.baseDataOnDemand;
  31 + BaseDataOnDemand PizzaDataOnDemand.baseDataOnDemand;
32 32
33 33 @Autowired
34 34 PizzaService PizzaDataOnDemand.pizzaService;
2  ...shop-layered/src/test/java/com/springsource/pizzashop/domain/PizzaIntegrationTest_Roo_IntegrationTest.aj
@@ -25,7 +25,7 @@ privileged aspect PizzaIntegrationTest_Roo_IntegrationTest {
25 25 declare @type: PizzaIntegrationTest: @Transactional;
26 26
27 27 @Autowired
28   - private PizzaDataOnDemand PizzaIntegrationTest.dod;
  28 + PizzaDataOnDemand PizzaIntegrationTest.dod;
29 29
30 30 @Autowired
31 31 PizzaService PizzaIntegrationTest.pizzaService;
2  ...layered/src/test/java/com/springsource/pizzashop/domain/PizzaOrderIntegrationTest_Roo_IntegrationTest.aj
@@ -26,7 +26,7 @@ privileged aspect PizzaOrderIntegrationTest_Roo_IntegrationTest {
26 26 declare @type: PizzaOrderIntegrationTest: @Transactional;
27 27
28 28 @Autowired
29   - private PizzaOrderDataOnDemand PizzaOrderIntegrationTest.dod;
  29 + PizzaOrderDataOnDemand PizzaOrderIntegrationTest.dod;
30 30
31 31 @Autowired
32 32 PizzaOrderService PizzaOrderIntegrationTest.pizzaOrderService;
2  ...op-layered/src/test/java/com/springsource/pizzashop/domain/ToppingIntegrationTest_Roo_IntegrationTest.aj
@@ -25,7 +25,7 @@ privileged aspect ToppingIntegrationTest_Roo_IntegrationTest {
25 25 declare @type: ToppingIntegrationTest: @Transactional;
26 26
27 27 @Autowired
28   - private ToppingDataOnDemand ToppingIntegrationTest.dod;
  28 + ToppingDataOnDemand ToppingIntegrationTest.dod;
29 29
30 30 @Autowired
31 31 ToppingService ToppingIntegrationTest.toppingService;
10 chapter-02-getting-started/taskmanager-noroo/derby.log
... ... @@ -1,10 +1,10 @@
1 1 ----------------------------------------------------------------
2   -Mon Jul 02 06:39:35 EDT 2012:
3   -Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-0138-4746-2256-0000041fe960
4   -on database directory /Users/kenrimple/git-repositories/spring-roo-in-action-examples/chapter-02-getting-started/taskmanager-noroo/taskmanager with class loader sun.misc.Launcher$AppClassLoader@43be2d65
  2 +Mon Dec 24 11:16:42 EST 2012:
  3 +Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-013b-cdb3-ab00-0000042547f0
  4 +on database directory /Users/kenrimple/git-repositories/spring-roo-in-action-examples/chapter-02-getting-started/taskmanager-noroo/taskmanager with class loader sun.misc.Launcher$AppClassLoader@1c8697ce
5 5 Loaded from file:/Users/kenrimple/.m2/repository/org/apache/derby/derby/10.8.1.2/derby-10.8.1.2.jar
6   -java.vendor=Apple Inc.
7   -java.runtime.version=1.6.0_33-b03-424-11M3720
  6 +java.vendor=Oracle Corporation
  7 +java.runtime.version=1.7.0_10-b18
8 8 user.dir=/Users/kenrimple/git-repositories/spring-roo-in-action-examples/chapter-02-getting-started/taskmanager-noroo
9 9 derby.system.home=null
10 10 Database Class Loader started - derby.database.classpath=''
10 chapter-02-getting-started/taskmanager/derby.log
... ... @@ -1,10 +1,10 @@
1 1 ----------------------------------------------------------------
2   -Mon Jul 02 06:39:28 EDT 2012:
3   -Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-0138-4746-09b7-000004ca22c0
4   -on database directory /Users/kenrimple/git-repositories/spring-roo-in-action-examples/chapter-02-getting-started/taskmanager/taskmanager with class loader sun.misc.Launcher$AppClassLoader@1f3e8d89
  2 +Mon Dec 24 11:16:35 EST 2012:
  3 +Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-013b-cdb3-9058-0000061e23f0
  4 +on database directory /Users/kenrimple/git-repositories/spring-roo-in-action-examples/chapter-02-getting-started/taskmanager/taskmanager with class loader sun.misc.Launcher$AppClassLoader@1c8697ce
5 5 Loaded from file:/Users/kenrimple/.m2/repository/org/apache/derby/derby/10.8.1.2/derby-10.8.1.2.jar
6   -java.vendor=Apple Inc.
7   -java.runtime.version=1.6.0_33-b03-424-11M3720
  6 +java.vendor=Oracle Corporation
  7 +java.runtime.version=1.7.0_10-b18
8 8 user.dir=/Users/kenrimple/git-repositories/spring-roo-in-action-examples/chapter-02-getting-started/taskmanager
9 9 derby.system.home=null
10 10 Database Class Loader started - derby.database.classpath=''
4 chapter-02-getting-started/taskmanager/pom.xml
@@ -10,7 +10,7 @@
10 10 <aspectj.version>1.6.12.M2</aspectj.version>
11 11 <java.version>1.6</java.version>
12 12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13   - <roo.version>1.2.2.RELEASE</roo.version>
  13 + <roo.version>1.2.3.RELEASE</roo.version>
14 14 <slf4j.version>1.6.2</slf4j.version>
15 15 <spring.version>3.1.0.RELEASE</spring.version>
16 16 </properties>
@@ -32,7 +32,7 @@
32 32 </repository>
33 33 <repository>
34 34 <id>EclipseLink Repo</id>
35   - <url>http://mirrors.ibiblio.org/pub/mirrors/eclipse/rt/eclipselink/maven.repo</url>
  35 + <url>http://download.eclipse.org/rt/eclipselink/maven.repo</url>
36 36 <name>EclipseLink Repo</name>
37 37 </repository>
38 38 </repositories>
13 ...-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_Configurable.aj
... ... @@ -0,0 +1,13 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.model;
  5 +
  6 +import org.rooinaction.taskmanager.model.Task;
  7 +import org.springframework.beans.factory.annotation.Configurable;
  8 +
  9 +privileged aspect Task_Roo_Configurable {
  10 +
  11 + declare @type: Task: @Configurable;
  12 +
  13 +}
26 chapter-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_JavaBean.aj
... ... @@ -0,0 +1,26 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.model;
  5 +
  6 +import org.rooinaction.taskmanager.model.Task;
  7 +
  8 +privileged aspect Task_Roo_JavaBean {
  9 +
  10 + public String Task.getDescription() {
  11 + return this.description;
  12 + }
  13 +
  14 + public void Task.setDescription(String description) {
  15 + this.description = description;
  16 + }
  17 +
  18 + public Boolean Task.getCompleted() {
  19 + return this.completed;
  20 + }
  21 +
  22 + public void Task.setCompleted(Boolean completed) {
  23 + this.completed = completed;
  24 + }
  25 +
  26 +}
77 ...getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_Jpa_ActiveRecord.aj
... ... @@ -0,0 +1,77 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.model;
  5 +
  6 +import java.util.List;
  7 +import javax.persistence.EntityManager;
  8 +import javax.persistence.PersistenceContext;
  9 +import org.rooinaction.taskmanager.model.Task;
  10 +import org.springframework.transaction.annotation.Transactional;
  11 +
  12 +privileged aspect Task_Roo_Jpa_ActiveRecord {
  13 +
  14 + @PersistenceContext
  15 + transient EntityManager Task.entityManager;
  16 +
  17 + public static final EntityManager Task.entityManager() {
  18 + EntityManager em = new Task().entityManager;
  19 + if (em == null) throw new IllegalStateException("Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?)");
  20 + return em;
  21 + }
  22 +
  23 + public static long Task.countTasks() {
  24 + return entityManager().createQuery("SELECT COUNT(o) FROM Task o", Long.class).getSingleResult();
  25 + }
  26 +
  27 + public static List<Task> Task.findAllTasks() {
  28 + return entityManager().createQuery("SELECT o FROM Task o", Task.class).getResultList();
  29 + }
  30 +
  31 + public static Task Task.findTask(Long id) {
  32 + if (id == null) return null;
  33 + return entityManager().find(Task.class, id);
  34 + }
  35 +
  36 + public static List<Task> Task.findTaskEntries(int firstResult, int maxResults) {
  37 + return entityManager().createQuery("SELECT o FROM Task o", Task.class).setFirstResult(firstResult).setMaxResults(maxResults).getResultList();
  38 + }
  39 +
  40 + @Transactional
  41 + public void Task.persist() {
  42 + if (this.entityManager == null) this.entityManager = entityManager();
  43 + this.entityManager.persist(this);
  44 + }
  45 +
  46 + @Transactional
  47 + public void Task.remove() {
  48 + if (this.entityManager == null) this.entityManager = entityManager();
  49 + if (this.entityManager.contains(this)) {
  50 + this.entityManager.remove(this);
  51 + } else {
  52 + Task attached = Task.findTask(this.id);
  53 + this.entityManager.remove(attached);
  54 + }
  55 + }
  56 +
  57 + @Transactional
  58 + public void Task.flush() {
  59 + if (this.entityManager == null) this.entityManager = entityManager();
  60 + this.entityManager.flush();
  61 + }
  62 +
  63 + @Transactional
  64 + public void Task.clear() {
  65 + if (this.entityManager == null) this.entityManager = entityManager();
  66 + this.entityManager.clear();
  67 + }
  68 +
  69 + @Transactional
  70 + public Task Task.merge() {
  71 + if (this.entityManager == null) this.entityManager = entityManager();
  72 + Task merged = this.entityManager.merge(this);
  73 + this.entityManager.flush();
  74 + return merged;
  75 + }
  76 +
  77 +}
43 ...er-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_Jpa_Entity.aj
... ... @@ -0,0 +1,43 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.model;
  5 +
  6 +import javax.persistence.Column;
  7 +import javax.persistence.Entity;
  8 +import javax.persistence.GeneratedValue;
  9 +import javax.persistence.GenerationType;
  10 +import javax.persistence.Id;
  11 +import javax.persistence.Version;
  12 +import org.rooinaction.taskmanager.model.Task;
  13 +
  14 +privileged aspect Task_Roo_Jpa_Entity {
  15 +
  16 + declare @type: Task: @Entity;
  17 +
  18 + @Id
  19 + @GeneratedValue(strategy = GenerationType.AUTO)
  20 + @Column(name = "id")
  21 + private Long Task.id;
  22 +
  23 + @Version
  24 + @Column(name = "version")
  25 + private Integer Task.version;
  26 +
  27 + public Long Task.getId() {
  28 + return this.id;
  29 + }
  30 +
  31 + public void Task.setId(Long id) {
  32 + this.id = id;
  33 + }
  34 +
  35 + public Integer Task.getVersion() {
  36 + return this.version;
  37 + }
  38 +
  39 + public void Task.setVersion(Integer version) {
  40 + this.version = version;
  41 + }
  42 +
  43 +}
16 chapter-02-getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/model/Task_Roo_ToString.aj
... ... @@ -0,0 +1,16 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.model;
  5 +
  6 +import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
  7 +import org.apache.commons.lang3.builder.ToStringStyle;
  8 +import org.rooinaction.taskmanager.model.Task;
  9 +
  10 +privileged aspect Task_Roo_ToString {
  11 +
  12 + public String Task.toString() {
  13 + return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
  14 + }
  15 +
  16 +}
20 ...ed/taskmanager/src/main/java/org/rooinaction/taskmanager/repository/TaskRepository_Roo_Jpa_Repository.aj
... ... @@ -0,0 +1,20 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.repository;
  5 +
  6 +import org.rooinaction.taskmanager.model.Task;
  7 +import org.rooinaction.taskmanager.repository.TaskRepository;
  8 +import org.springframework.data.jpa.repository.JpaRepository;
  9 +import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
  10 +import org.springframework.stereotype.Repository;
  11 +
  12 +privileged aspect TaskRepository_Roo_Jpa_Repository {
  13 +
  14 + declare parents: TaskRepository extends JpaRepository<Task, Long>;
  15 +
  16 + declare parents: TaskRepository extends JpaSpecificationExecutor<Task>;
  17 +
  18 + declare @type: TaskRepository: @Repository;
  19 +
  20 +}
47 ...ing-started/taskmanager/src/main/java/org/rooinaction/taskmanager/service/TaskServiceImpl_Roo_Service.aj
... ... @@ -0,0 +1,47 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.service;
  5 +
  6 +import java.util.List;
  7 +import org.rooinaction.taskmanager.model.Task;
  8 +import org.rooinaction.taskmanager.repository.TaskRepository;
  9 +import org.rooinaction.taskmanager.service.TaskServiceImpl;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.stereotype.Service;
  12 +import org.springframework.transaction.annotation.Transactional;
  13 +
  14 +privileged aspect TaskServiceImpl_Roo_Service {
  15 +
  16 + declare @type: TaskServiceImpl: @Service;
  17 +
  18 + declare @type: TaskServiceImpl: @Transactional;
  19 +
  20 + @Autowired
  21 + TaskRepository TaskServiceImpl.taskRepository;
  22 +
  23 + public long TaskServiceImpl.countAllTasks() {
  24 + return taskRepository.count();
  25 + }
  26 +
  27 + public void TaskServiceImpl.deleteTask(Task task) {
  28 + taskRepository.delete(task);
  29 + }
  30 +
  31 + public Task TaskServiceImpl.findTask(Long id) {
  32 + return taskRepository.findOne(id);
  33 + }
  34 +
  35 + public List<Task> TaskServiceImpl.findAllTasks() {
  36 + return taskRepository.findAll();
  37 + }
  38 +
  39 + public List<Task> TaskServiceImpl.findTaskEntries(int firstResult, int maxResults) {
  40 + return taskRepository.findAll(new org.springframework.data.domain.PageRequest(firstResult / maxResults, maxResults)).getContent();
  41 + }
  42 +
  43 + public void TaskServiceImpl.saveTask(Task task) {
  44 + taskRepository.save(task);
  45 + }
  46 +
  47 +}
19 ...getting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/service/TaskService_Roo_Service.aj
... ... @@ -0,0 +1,19 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.service;
  5 +
  6 +import java.util.List;
  7 +import org.rooinaction.taskmanager.model.Task;
  8 +import org.rooinaction.taskmanager.service.TaskService;
  9 +
  10 +privileged aspect TaskService_Roo_Service {
  11 +
  12 + public abstract long TaskService.countAllTasks();
  13 + public abstract void TaskService.deleteTask(Task task);
  14 + public abstract Task TaskService.findTask(Long id);
  15 + public abstract List<Task> TaskService.findAllTasks();
  16 + public abstract List<Task> TaskService.findTaskEntries(int firstResult, int maxResults);
  17 + public abstract void TaskService.saveTask(Task task);
  18 + public abstract Task TaskService.updateTask(Task task);
  19 +}
56 ...in/java/org/rooinaction/taskmanager/web/ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj
... ... @@ -0,0 +1,56 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.web;
  5 +
  6 +import org.rooinaction.taskmanager.model.Task;
  7 +import org.rooinaction.taskmanager.service.TaskService;
  8 +import org.rooinaction.taskmanager.web.ApplicationConversionServiceFactoryBean;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.beans.factory.annotation.Configurable;
  11 +import org.springframework.core.convert.converter.Converter;
  12 +import org.springframework.format.FormatterRegistry;
  13 +
  14 +privileged aspect ApplicationConversionServiceFactoryBean_Roo_ConversionService {
  15 +
  16 + declare @type: ApplicationConversionServiceFactoryBean: @Configurable;
  17 +
  18 + @Autowired
  19 + TaskService ApplicationConversionServiceFactoryBean.taskService;
  20 +
  21 + public Converter<Task, String> ApplicationConversionServiceFactoryBean.getTaskToStringConverter() {
  22 + return new org.springframework.core.convert.converter.Converter<org.rooinaction.taskmanager.model.Task, java.lang.String>() {
  23 + public String convert(Task task) {
  24 + return new StringBuilder().append(task.getDescription()).toString();
  25 + }
  26 + };
  27 + }
  28 +
  29 + public Converter<Long, Task> ApplicationConversionServiceFactoryBean.getIdToTaskConverter() {
  30 + return new org.springframework.core.convert.converter.Converter<java.lang.Long, org.rooinaction.taskmanager.model.Task>() {
  31 + public org.rooinaction.taskmanager.model.Task convert(java.lang.Long id) {
  32 + return taskService.findTask(id);
  33 + }
  34 + };
  35 + }
  36 +
  37 + public Converter<String, Task> ApplicationConversionServiceFactoryBean.getStringToTaskConverter() {
  38 + return new org.springframework.core.convert.converter.Converter<java.lang.String, org.rooinaction.taskmanager.model.Task>() {
  39 + public org.rooinaction.taskmanager.model.Task convert(String id) {
  40 + return getObject().convert(getObject().convert(id, Long.class), Task.class);
  41 + }
  42 + };
  43 + }
  44 +
  45 + public void ApplicationConversionServiceFactoryBean.installLabelConverters(FormatterRegistry registry) {
  46 + registry.addConverter(getTaskToStringConverter());
  47 + registry.addConverter(getIdToTaskConverter());
  48 + registry.addConverter(getStringToTaskConverter());
  49 + }
  50 +
  51 + public void ApplicationConversionServiceFactoryBean.afterPropertiesSet() {
  52 + super.afterPropertiesSet();
  53 + installLabelConverters(getObject());
  54 + }
  55 +
  56 +}
107 ...tting-started/taskmanager/src/main/java/org/rooinaction/taskmanager/web/TaskController_Roo_Controller.aj
... ... @@ -0,0 +1,107 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.web;
  5 +
  6 +import java.io.UnsupportedEncodingException;
  7 +import javax.servlet.http.HttpServletRequest;
  8 +import javax.validation.Valid;
  9 +import org.rooinaction.taskmanager.model.Task;
  10 +import org.rooinaction.taskmanager.service.TaskService;
  11 +import org.rooinaction.taskmanager.web.TaskController;
  12 +import org.springframework.beans.factory.annotation.Autowired;
  13 +import org.springframework.ui.Model;
  14 +import org.springframework.validation.BindingResult;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestMapping;
  17 +import org.springframework.web.bind.annotation.RequestMethod;
  18 +import org.springframework.web.bind.annotation.RequestParam;
  19 +import org.springframework.web.util.UriUtils;
  20 +import org.springframework.web.util.WebUtils;
  21 +
  22 +privileged aspect TaskController_Roo_Controller {
  23 +
  24 + @Autowired
  25 + TaskService TaskController.taskService;
  26 +
  27 + @RequestMapping(method = RequestMethod.POST, produces = "text/html")
  28 + public String TaskController.create(@Valid Task task, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) {
  29 + if (bindingResult.hasErrors()) {
  30 + populateEditForm(uiModel, task);
  31 + return "tasks/create";
  32 + }
  33 + uiModel.asMap().clear();
  34 + taskService.saveTask(task);
  35 + return "redirect:/tasks/" + encodeUrlPathSegment(task.getId().toString(), httpServletRequest);
  36 + }
  37 +
  38 + @RequestMapping(params = "form", produces = "text/html")
  39 + public String TaskController.createForm(Model uiModel) {
  40 + populateEditForm(uiModel, new Task());
  41 + return "tasks/create";
  42 + }
  43 +
  44 + @RequestMapping(value = "/{id}", produces = "text/html")
  45 + public String TaskController.show(@PathVariable("id") Long id, Model uiModel) {
  46 + uiModel.addAttribute("task", taskService.findTask(id));
  47 + uiModel.addAttribute("itemId", id);
  48 + return "tasks/show";
  49 + }
  50 +
  51 + @RequestMapping(produces = "text/html")
  52 + public String TaskController.list(@RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) {
  53 + if (page != null || size != null) {
  54 + int sizeNo = size == null ? 10 : size.intValue();
  55 + final int firstResult = page == null ? 0 : (page.intValue() - 1) * sizeNo;
  56 + uiModel.addAttribute("tasks", taskService.findTaskEntries(firstResult, sizeNo));
  57 + float nrOfPages = (float) taskService.countAllTasks() / sizeNo;
  58 + uiModel.addAttribute("maxPages", (int) ((nrOfPages > (int) nrOfPages || nrOfPages == 0.0) ? nrOfPages + 1 : nrOfPages));
  59 + } else {
  60 + uiModel.addAttribute("tasks", taskService.findAllTasks());
  61 + }
  62 + return "tasks/list";
  63 + }
  64 +
  65 + @RequestMapping(method = RequestMethod.PUT, produces = "text/html")
  66 + public String TaskController.update(@Valid Task task, BindingResult bindingResult, Model uiModel, HttpServletRequest httpServletRequest) {
  67 + if (bindingResult.hasErrors()) {
  68 + populateEditForm(uiModel, task);
  69 + return "tasks/update";
  70 + }
  71 + uiModel.asMap().clear();
  72 + taskService.updateTask(task);
  73 + return "redirect:/tasks/" + encodeUrlPathSegment(task.getId().toString(), httpServletRequest);
  74 + }
  75 +
  76 + @RequestMapping(value = "/{id}", params = "form", produces = "text/html")
  77 + public String TaskController.updateForm(@PathVariable("id") Long id, Model uiModel) {
  78 + populateEditForm(uiModel, taskService.findTask(id));
  79 + return "tasks/update";
  80 + }
  81 +
  82 + @RequestMapping(value = "/{id}", method = RequestMethod.DELETE, produces = "text/html")
  83 + public String TaskController.delete(@PathVariable("id") Long id, @RequestParam(value = "page", required = false) Integer page, @RequestParam(value = "size", required = false) Integer size, Model uiModel) {
  84 + Task task = taskService.findTask(id);
  85 + taskService.deleteTask(task);
  86 + uiModel.asMap().clear();
  87 + uiModel.addAttribute("page", (page == null) ? "1" : page.toString());
  88 + uiModel.addAttribute("size", (size == null) ? "10" : size.toString());
  89 + return "redirect:/tasks";
  90 + }
  91 +
  92 + void TaskController.populateEditForm(Model uiModel, Task task) {
  93 + uiModel.addAttribute("task", task);
  94 + }
  95 +
  96 + String TaskController.encodeUrlPathSegment(String pathSegment, HttpServletRequest httpServletRequest) {
  97 + String enc = httpServletRequest.getCharacterEncoding();
  98 + if (enc == null) {
  99 + enc = WebUtils.DEFAULT_CHARACTER_ENCODING;
  100 + }
  101 + try {
  102 + pathSegment = UriUtils.encodePathSegment(pathSegment, enc);
  103 + } catch (UnsupportedEncodingException uee) {}
  104 + return pathSegment;
  105 + }
  106 +
  107 +}
13 ...started/taskmanager/src/test/java/org/rooinaction/taskmanager/model/TaskDataOnDemand_Roo_Configurable.aj
... ... @@ -0,0 +1,13 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.model;
  5 +
  6 +import org.rooinaction.taskmanager.model.TaskDataOnDemand;
  7 +import org.springframework.beans.factory.annotation.Configurable;
  8 +
  9 +privileged aspect TaskDataOnDemand_Roo_Configurable {
  10 +
  11 + declare @type: TaskDataOnDemand: @Configurable;
  12 +
  13 +}
107 ...started/taskmanager/src/test/java/org/rooinaction/taskmanager/model/TaskDataOnDemand_Roo_DataOnDemand.aj
... ... @@ -0,0 +1,107 @@
  1 +// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
  2 +// You may push code into the target .java compilation unit if you wish to edit any member(s).
  3 +
  4 +package org.rooinaction.taskmanager.model;
  5 +
  6 +import java.security.SecureRandom;
  7 +import java.util.ArrayList;
  8 +import java.util.Iterator;
  9 +import java.util.List;
  10 +import java.util.Random;
  11 +import javax.validation.ConstraintViolation;
  12 +import javax.validation.ConstraintViolationException;
  13 +import org.rooinaction.taskmanager.model.Task;
  14 +import org.rooinaction.taskmanager.model.TaskDataOnDemand;
  15 +import org.rooinaction.taskmanager.repository.TaskRepository;
  16 +import org.rooinaction.taskmanager.service.TaskService;
  17 +import org.springframework.beans.factory.annotation.Autowired;
  18 +import org.springframework.stereotype.Component;
  19 +
  20 +privileged aspect TaskDataOnDemand_Roo_DataOnDemand {
  21 +
  22 + declare @type: TaskDataOnDemand: @Component;
  23 +
  24 + private Random TaskDataOnDemand.rnd = new SecureRandom();
  25 +
  26 + private List<Task> TaskDataOnDemand.data;
  27 +
  28 + @Autowired
  29 + TaskService TaskDataOnDemand.taskService;
  30 +
  31 + @Autowired
  32 + TaskRepository TaskDataOnDemand.taskRepository;
  33 +
  34 + public Task TaskDataOnDemand.getNewTransientTask(int index) {
  35 + Task obj = new Task();
  36 + setCompleted(obj, index);
  37 + setDescription(obj, index);
  38 + return obj;
  39 + }
  40 +
  41 + public void TaskDataOnDemand.setCompleted(Task obj, int index) {
  42 + Boolean completed = Boolean.TRUE;
  43 + obj.setCompleted(completed);
  44 + }
  45 +