Permalink
Browse files

updates

  • Loading branch information...
1 parent a254f93 commit 71e0ad0d1d9f1a89bfa7ff2ef04058c75a93bbc5 @krimple committed Aug 7, 2012
Showing with 1,272 additions and 31 deletions.
  1. +2 −2 chapter-02-getting-started/taskmanager-noroo/derby.log
  2. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/db.lck
  3. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/log/log.ctrl
  4. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/log/log1.dat
  5. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/log/logmirror.ctrl
  6. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c101.dat
  7. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c111.dat
  8. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c121.dat
  9. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c130.dat
  10. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c141.dat
  11. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c20.dat
  12. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c31.dat
  13. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c41.dat
  14. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c490.dat
  15. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c4a1.dat
  16. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c51.dat
  17. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c530.dat
  18. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c541.dat
  19. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c60.dat
  20. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c71.dat
  21. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c81.dat
  22. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/c90.dat
  23. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/ca1.dat
  24. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cb1.dat
  25. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/cf0.dat
  26. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d510.dat
  27. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d521.dat
  28. BIN chapter-02-getting-started/taskmanager-noroo/taskmanager/seg0/d550.dat
  29. +3 −3 chapter-02-getting-started/taskmanager/derby.log
  30. BIN chapter-02-getting-started/taskmanager/taskmanager/db.lck
  31. BIN chapter-02-getting-started/taskmanager/taskmanager/log/log.ctrl
  32. BIN chapter-02-getting-started/taskmanager/taskmanager/log/log1.dat
  33. BIN chapter-02-getting-started/taskmanager/taskmanager/log/logmirror.ctrl
  34. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c101.dat
  35. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c111.dat
  36. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c121.dat
  37. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c130.dat
  38. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c141.dat
  39. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c20.dat
  40. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c31.dat
  41. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c41.dat
  42. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c490.dat
  43. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c4a1.dat
  44. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c51.dat
  45. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c550.dat
  46. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c561.dat
  47. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c60.dat
  48. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c71.dat
  49. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c81.dat
  50. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/c90.dat
  51. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/ca1.dat
  52. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/cb1.dat
  53. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/cf0.dat
  54. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/d530.dat
  55. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/d541.dat
  56. BIN chapter-02-getting-started/taskmanager/taskmanager/seg0/d570.dat
  57. +1 −1 chapter-03-jpa/coursemanager-repository/coursemanagerch3.properties
  58. +1 −1 chapter-03-jpa/coursemanager/coursemanagerch3.properties
  59. +1 −1 chapter-09-testing/coursemanager/coursemanagerweb.properties
  60. +25 −23 ...feescript-addon/src/main/java/org/rooinaction/addons/coffeescript/CoffeescriptOperationsImpl.java
  61. +17 −0 querydsl/coursemanager.properties
  62. +20 −0 querydsl/coursemanager.script
  63. +429 −0 querydsl/pom.xml
  64. +9 −0 querydsl/src/main/java/org/rooinaction/coursemanager/StudentService.java
  65. +9 −0 querydsl/src/main/java/org/rooinaction/coursemanager/StudentServiceImpl.java
  66. +8 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/CourseRepository.java
  67. +8 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/InstructorRepository.java
  68. +8 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/OfferingRepository.java
  69. +8 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/PersonRepository.java
  70. +8 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/RegistrationRepository.java
  71. +11 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/StudentRepository.java
  72. +8 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/TagRepository.java
  73. +8 −0 querydsl/src/main/java/org/rooinaction/coursemanager/db/TrainingProgramRepository.java
  74. +246 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/Course.java
  75. +7 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/CourseTypeEnum.java
  76. +19 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/Instructor.java
  77. +33 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/Offering.java
  78. +40 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/Person.java
  79. +22 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/Registration.java
  80. +24 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/Student.java
  81. +28 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/Tag.java
  82. +20 −0 querydsl/src/main/java/org/rooinaction/coursemanager/model/TrainingProgram.java
  83. +16 −0 querydsl/src/main/resources/META-INF/persistence.xml
  84. +7 −0 querydsl/src/main/resources/META-INF/spring/applicationContext-jpa.xml
  85. +70 −0 querydsl/src/main/resources/META-INF/spring/applicationContext.xml
  86. +6 −0 querydsl/src/main/resources/META-INF/spring/database.properties
  87. +17 −0 querydsl/src/main/resources/log4j.properties
  88. +7 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/CourseDataOnDemand.java
  89. +12 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/CourseIntegrationTest.java
  90. +7 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/InstructorDataOnDemand.java
  91. +12 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/InstructorIntegrationTest.java
  92. +7 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/OfferingDataOnDemand.java
  93. +12 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/OfferingIntegrationTest.java
  94. +7 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/RegistrationDataOnDemand.java
  95. +12 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/RegistrationIntegrationTest.java
  96. +7 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/StudentDataOnDemand.java
  97. +12 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/StudentIntegrationTest.java
  98. +7 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/TagDataOnDemand.java
  99. +12 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/TagIntegrationTest.java
  100. +7 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramDataOnDemand.java
  101. +12 −0 querydsl/src/test/java/org/rooinaction/coursemanager/model/TrainingProgramIntegrationTest.java
@@ -1,6 +1,6 @@
----------------------------------------------------------------
-Sun Jul 01 17:11:57 EDT 2012:
-Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-0138-4462-bb36-000004192e08
+Mon Jul 02 06:39:35 EDT 2012:
+Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-0138-4746-2256-0000041fe960
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
Loaded from file:/Users/kenrimple/.m2/repository/org/apache/derby/derby/10.8.1.2/derby-10.8.1.2.jar
java.vendor=Apple Inc.
@@ -1,7 +1,7 @@
----------------------------------------------------------------
-Sun Jul 01 17:11:51 EDT 2012:
-Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-0138-4462-a2c5-000004ca2038
-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@43be2d65
+Mon Jul 02 06:39:28 EDT 2012:
+Booting Derby version The Apache Software Foundation - Apache Derby - 10.8.1.2 - (1095077): instance a816c00e-0138-4746-09b7-000004ca22c0
+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
Loaded from file:/Users/kenrimple/.m2/repository/org/apache/derby/derby/10.8.1.2/derby-10.8.1.2.jar
java.vendor=Apple Inc.
java.runtime.version=1.6.0_33-b03-424-11M3720
Binary file not shown.
@@ -1,5 +1,5 @@
#HSQL Database Engine 1.8.0.10
-#Sun Jul 01 17:12:07 EDT 2012
+#Mon Jul 02 06:39:45 EDT 2012
hsqldb.script_format=0
runtime.gc_interval=0
sql.enforce_strict_size=false
@@ -1,5 +1,5 @@
#HSQL Database Engine 1.8.0.10
-#Sun Jul 01 17:12:03 EDT 2012
+#Mon Jul 02 06:39:41 EDT 2012
hsqldb.script_format=0
runtime.gc_interval=0
sql.enforce_strict_size=false
@@ -1,5 +1,5 @@
#HSQL Database Engine 1.8.0.10
-#Sun Jul 01 18:31:08 EDT 2012
+#Mon Jul 02 06:40:38 EDT 2012
hsqldb.script_format=0
runtime.gc_interval=0
sql.enforce_strict_size=false
@@ -15,6 +15,8 @@
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
+import java.util.List;
+import java.util.ArrayList;
/**
* Implementation of operations this add-on offers.
@@ -79,35 +81,35 @@ public boolean isRemoveCommandAvailable() {
return isCoffeeScriptPluginInstalled();
}
-
- /** {@inheritDoc} */
- public void setup() {
- String moduleName = projectOperations.getFocusedModuleName();
- projectOperations.addBuildPlugins(moduleName, getPlugins());
-
- }
-
- public void remove() {
- String moduleName = projectOperations.getFocusedModuleName();
- projectOperations.removeBuildPlugins(moduleName, getPlugins());
- }
-
+ public void setup() {
+ Collection<Plugin> pluginsToAdd = getPluginsFromConfigurationXml();
+ projectOperations.addBuildPlugins(
+ projectOperations.getFocusedModuleName(), pluginsToAdd);
+ }
+
/**
* provide access to the build plugins in the file, that way if additional
* plugins are needed, you can just add them to the configuration file.
*
* @return The set of plugins
*/
- private Set<Plugin> getPlugins() {
- Element configuration = XmlUtils.getConfiguration(this.getClass());
- Collection<Element> configPlugins = XmlUtils.findElements(
- "/configuration/coffeescript/plugins/plugin", configuration);
-
- Set<Plugin> plugins = new HashSet<Plugin>();
- for (Element pluginElement : configPlugins) {
- plugins.add(new Plugin(pluginElement));
- }
- return plugins;
+ private List<Plugin> getPluginsFromConfigurationXml() {
+ Element configuration = XmlUtils.getConfiguration(this.getClass());
+ Collection<Element> configPlugins = XmlUtils.findElements(
+ "/configuration/coffeescript/plugins/plugin",
+ configuration);
+
+ List<Plugin> plugins = new ArrayList<Plugin>();
+ for (Element pluginXml : configPlugins) {
+ plugins.add(new Plugin(pluginXml));
+ }
+ return plugins;
+ }
+
+ public void remove() {
+ String moduleName = projectOperations.getFocusedModuleName();
+ projectOperations.removeBuildPlugins(moduleName,
+ getPluginsFromConfigurationXml());
}
private boolean isCoffeeScriptPluginInstalled() {
@@ -0,0 +1,17 @@
+#HSQL Database Engine 1.8.0.10
+#Mon Jul 23 23:51:59 EDT 2012
+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
@@ -0,0 +1,20 @@
+CREATE SCHEMA PUBLIC AUTHORIZATION DBA
+CREATE MEMORY TABLE COURSE(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,COURSE_TYPE VARCHAR(255) NOT NULL,DESCRIPTION VARCHAR(1000) NOT NULL,LIST_PRICE NUMERIC NOT NULL,MAX_CAPACITY INTEGER NOT NULL,COURSE_NAME VARCHAR(60),RUN_DATE TIMESTAMP,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),EMAIL_ADDRESS VARCHAR(80) NOT NULL,FIRST_NAME VARCHAR(30),MIDDLE_NAME_OR_INITIAL VARCHAR(30),POSTAL_CODE VARCHAR(10) NOT NULL,STATE_CODE VARCHAR(2),VERSION INTEGER,ACTIVE BOOLEAN,TAX_NUMBER VARCHAR(9) NOT NULL)
+CREATE MEMORY TABLE OFFERING(ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,LOCATION_NAME VARCHAR(80) NOT NULL,OFFER_DATE TIMESTAMP NOT NULL,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,PAYMENT_MADE BOOLEAN,VERSION INTEGER,COURSE BIGINT,STUDENT BIGINT,CONSTRAINT FKAF83E8B99CBA5162 FOREIGN KEY(COURSE) REFERENCES COURSE(ID))
+CREATE MEMORY TABLE STUDENT(ID BIGINT NOT NULL PRIMARY KEY,ADDRESS_LINE1 VARCHAR(60) NOT NULL,ADDRESS_LINE2 VARCHAR(60),CITY VARCHAR(40),EMAIL_ADDRESS VARCHAR(80) NOT NULL,FIRST_NAME VARCHAR(30),MIDDLE_NAME_OR_INITIAL VARCHAR(30),POSTAL_CODE VARCHAR(10) NOT NULL,STATE_CODE VARCHAR(2),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_COURSES(TAGS BIGINT NOT NULL,COURSES BIGINT NOT NULL,PRIMARY KEY(TAGS,COURSES),CONSTRAINT FK74A650135994D207 FOREIGN KEY(TAGS) REFERENCES TAG(ID),CONSTRAINT FK74A65013269094FF FOREIGN KEY(COURSES) REFERENCES COURSE(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 1
+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
Oops, something went wrong.

0 comments on commit 71e0ad0

Please sign in to comment.