diff --git a/mvnex-examples/.project b/mvnex-examples/.project index 4d98725a..628c26af 100644 --- a/mvnex-examples/.project +++ b/mvnex-examples/.project @@ -1,6 +1,6 @@ - mvnex-examples + maven-examples diff --git a/mvnex-examples/pom.xml b/mvnex-examples/pom.xml index c5b1968d..220afe8b 100644 --- a/mvnex-examples/pom.xml +++ b/mvnex-examples/pom.xml @@ -3,8 +3,8 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - org.sonatype.mvnexbook - mvnex-examples + org.sonatype.mavenbook + maven-examples 1.0 pom Optimization Chapter Simple Parent Project diff --git a/mvnex-examples/simple-command/.classpath b/mvnex-examples/simple-command/.classpath new file mode 100644 index 00000000..96f09f11 --- /dev/null +++ b/mvnex-examples/simple-command/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mvnex-examples/simple-command/.project b/mvnex-examples/simple-command/.project new file mode 100644 index 00000000..e36bab1c --- /dev/null +++ b/mvnex-examples/simple-command/.project @@ -0,0 +1,23 @@ + + + simple-command + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.maven.ide.eclipse.maven2Nature + + diff --git a/mvnex-examples/simple-command/.settings/org.eclipse.jdt.core.prefs b/mvnex-examples/simple-command/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..86260262 --- /dev/null +++ b/mvnex-examples/simple-command/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/mvnex-examples/simple-command/.settings/org.maven.ide.eclipse.prefs b/mvnex-examples/simple-command/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 00000000..3c757a28 --- /dev/null +++ b/mvnex-examples/simple-command/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,7 @@ +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/mvnex-examples/simple-command/pom.xml b/mvnex-examples/simple-command/pom.xml index f9892ef9..905dec01 100644 --- a/mvnex-examples/simple-command/pom.xml +++ b/mvnex-examples/simple-command/pom.xml @@ -4,8 +4,8 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - org.sonatype.mvnexbook - mvnex-examples + org.sonatype.mavenbook + maven-examples 1.0 diff --git a/mvnex-examples/simple-model/.classpath b/mvnex-examples/simple-model/.classpath new file mode 100644 index 00000000..6fb1b6f1 --- /dev/null +++ b/mvnex-examples/simple-model/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/mvnex-examples/simple-model/.project b/mvnex-examples/simple-model/.project new file mode 100644 index 00000000..2536ad7a --- /dev/null +++ b/mvnex-examples/simple-model/.project @@ -0,0 +1,23 @@ + + + simple-model + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.maven.ide.eclipse.maven2Nature + + diff --git a/mvnex-examples/simple-model/.settings/org.eclipse.jdt.core.prefs b/mvnex-examples/simple-model/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..86260262 --- /dev/null +++ b/mvnex-examples/simple-model/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/mvnex-examples/simple-model/.settings/org.maven.ide.eclipse.prefs b/mvnex-examples/simple-model/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 00000000..3c757a28 --- /dev/null +++ b/mvnex-examples/simple-model/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,7 @@ +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/mvnex-examples/simple-model/pom.xml b/mvnex-examples/simple-model/pom.xml index 2580663c..bb877d20 100644 --- a/mvnex-examples/simple-model/pom.xml +++ b/mvnex-examples/simple-model/pom.xml @@ -4,8 +4,8 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - org.sonatype.mvnexbook - mvnex-examples + org.sonatype.mavenbook + maven-examples 1.0 simple-model diff --git a/mvnex-examples/simple-persist/.classpath b/mvnex-examples/simple-persist/.classpath new file mode 100644 index 00000000..68e178d9 --- /dev/null +++ b/mvnex-examples/simple-persist/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/mvnex-examples/simple-persist/.project b/mvnex-examples/simple-persist/.project new file mode 100644 index 00000000..a7a9a17e --- /dev/null +++ b/mvnex-examples/simple-persist/.project @@ -0,0 +1,23 @@ + + + simple-persist + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.maven.ide.eclipse.maven2Nature + + diff --git a/mvnex-examples/simple-persist/.settings/org.eclipse.jdt.core.prefs b/mvnex-examples/simple-persist/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..86260262 --- /dev/null +++ b/mvnex-examples/simple-persist/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/mvnex-examples/simple-persist/.settings/org.maven.ide.eclipse.prefs b/mvnex-examples/simple-persist/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 00000000..3c757a28 --- /dev/null +++ b/mvnex-examples/simple-persist/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,7 @@ +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/mvnex-examples/simple-persist/data/weather.properties b/mvnex-examples/simple-persist/data/weather.properties new file mode 100644 index 00000000..829c0aaf --- /dev/null +++ b/mvnex-examples/simple-persist/data/weather.properties @@ -0,0 +1,17 @@ +#HSQL Database Engine 1.8.0.5 +#Mon Jul 23 17:59:09 CST 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 diff --git a/mvnex-examples/simple-persist/data/weather.script b/mvnex-examples/simple-persist/data/weather.script new file mode 100644 index 00000000..9fd5069e --- /dev/null +++ b/mvnex-examples/simple-persist/data/weather.script @@ -0,0 +1,15 @@ +CREATE SCHEMA PUBLIC AUTHORIZATION DBA +CREATE MEMORY TABLE ATMOSPHERE(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,HUMIDITY VARCHAR(255),PRESSURE VARCHAR(255),RISING VARCHAR(255),VISIBILITY VARCHAR(255),WEATHER_ID INTEGER NOT NULL) +CREATE MEMORY TABLE CONDITION(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,CODE VARCHAR(255),DATE VARCHAR(255),TEMP VARCHAR(255),TEXT VARCHAR(255),WEATHER_ID INTEGER NOT NULL) +CREATE MEMORY TABLE LOCATION(ZIP VARCHAR(255) NOT NULL PRIMARY KEY,CITY VARCHAR(255),COUNTRY VARCHAR(255),REGION VARCHAR(255)) +CREATE MEMORY TABLE WEATHER(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,DATE TIMESTAMP,LOCATION_ZIP VARCHAR(255),CONSTRAINT FKAC24CFD41D328C00 FOREIGN KEY(LOCATION_ZIP) REFERENCES LOCATION(ZIP)) +CREATE MEMORY TABLE WIND(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,CHILL VARCHAR(255),DIRECTION VARCHAR(255),SPEED VARCHAR(255),WEATHER_ID INTEGER NOT NULL,CONSTRAINT FK292428E377EE06 FOREIGN KEY(WEATHER_ID) REFERENCES WEATHER(ID)) +ALTER TABLE ATMOSPHERE ADD CONSTRAINT FK2AF43942E377EE06 FOREIGN KEY(WEATHER_ID) REFERENCES WEATHER(ID) +ALTER TABLE CONDITION ADD CONSTRAINT FK441B8CFBE377EE06 FOREIGN KEY(WEATHER_ID) REFERENCES WEATHER(ID) +ALTER TABLE ATMOSPHERE ALTER COLUMN ID RESTART WITH 1 +ALTER TABLE CONDITION ALTER COLUMN ID RESTART WITH 1 +ALTER TABLE WEATHER ALTER COLUMN ID RESTART WITH 1 +ALTER TABLE WIND ALTER COLUMN ID RESTART WITH 1 +CREATE USER SA PASSWORD "" +GRANT DBA TO SA +SET WRITE_DELAY 10 diff --git a/mvnex-examples/simple-persist/pom.xml b/mvnex-examples/simple-persist/pom.xml index 464ca4b0..4f42be57 100644 --- a/mvnex-examples/simple-persist/pom.xml +++ b/mvnex-examples/simple-persist/pom.xml @@ -4,8 +4,8 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - org.sonatype.mvnexbook - mvnex-examples + org.sonatype.mavenbook + maven-examples 1.0 simple-persist diff --git a/mvnex-examples/simple-weather/.classpath b/mvnex-examples/simple-weather/.classpath new file mode 100644 index 00000000..96f09f11 --- /dev/null +++ b/mvnex-examples/simple-weather/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/mvnex-examples/simple-weather/.project b/mvnex-examples/simple-weather/.project new file mode 100644 index 00000000..299131d8 --- /dev/null +++ b/mvnex-examples/simple-weather/.project @@ -0,0 +1,23 @@ + + + simple-weather + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.maven.ide.eclipse.maven2Nature + + diff --git a/mvnex-examples/simple-weather/.settings/org.eclipse.jdt.core.prefs b/mvnex-examples/simple-weather/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..86260262 --- /dev/null +++ b/mvnex-examples/simple-weather/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/mvnex-examples/simple-weather/.settings/org.maven.ide.eclipse.prefs b/mvnex-examples/simple-weather/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 00000000..3c757a28 --- /dev/null +++ b/mvnex-examples/simple-weather/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,7 @@ +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/mvnex-examples/simple-weather/pom.xml b/mvnex-examples/simple-weather/pom.xml index dcaad0a3..0e1871f8 100644 --- a/mvnex-examples/simple-weather/pom.xml +++ b/mvnex-examples/simple-weather/pom.xml @@ -4,8 +4,8 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - org.sonatype.mvnexbook - mvnex-examples + org.sonatype.mavenbook + maven-examples 1.0 simple-weather diff --git a/mvnex-examples/simple-webapp/.classpath b/mvnex-examples/simple-webapp/.classpath new file mode 100644 index 00000000..0bb7ad5c --- /dev/null +++ b/mvnex-examples/simple-webapp/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/mvnex-examples/simple-webapp/.project b/mvnex-examples/simple-webapp/.project new file mode 100644 index 00000000..885fcad6 --- /dev/null +++ b/mvnex-examples/simple-webapp/.project @@ -0,0 +1,23 @@ + + + simple-webapp + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.maven.ide.eclipse.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.maven.ide.eclipse.maven2Nature + + diff --git a/mvnex-examples/simple-webapp/.settings/org.eclipse.jdt.core.prefs b/mvnex-examples/simple-webapp/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..86260262 --- /dev/null +++ b/mvnex-examples/simple-webapp/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/mvnex-examples/simple-webapp/.settings/org.maven.ide.eclipse.prefs b/mvnex-examples/simple-webapp/.settings/org.maven.ide.eclipse.prefs new file mode 100644 index 00000000..3c757a28 --- /dev/null +++ b/mvnex-examples/simple-webapp/.settings/org.maven.ide.eclipse.prefs @@ -0,0 +1,7 @@ +activeProfiles= +eclipse.preferences.version=1 +fullBuildGoals=process-test-resources +resolveWorkspaceProjects=true +resourceFilterGoals=process-resources resources\:testResources +skipCompilerPlugin=true +version=1 diff --git a/mvnex-examples/simple-webapp/data/weather.properties b/mvnex-examples/simple-webapp/data/weather.properties index 9e212702..beac1480 100644 --- a/mvnex-examples/simple-webapp/data/weather.properties +++ b/mvnex-examples/simple-webapp/data/weather.properties @@ -1,5 +1,5 @@ #HSQL Database Engine 1.8.0.5 -#Sat Jun 02 15:16:34 CST 2012 +#Sat Jun 02 15:55:50 CST 2012 hsqldb.script_format=0 runtime.gc_interval=0 sql.enforce_strict_size=false diff --git a/mvnex-examples/simple-webapp/data/weather.script b/mvnex-examples/simple-webapp/data/weather.script index 6c38db8c..e2e7cf8f 100644 --- a/mvnex-examples/simple-webapp/data/weather.script +++ b/mvnex-examples/simple-webapp/data/weather.script @@ -6,16 +6,20 @@ CREATE MEMORY TABLE WEATHER(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WI CREATE MEMORY TABLE WIND(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,CHILL VARCHAR(255),DIRECTION VARCHAR(255),SPEED VARCHAR(255),WEATHER_ID INTEGER NOT NULL,CONSTRAINT FK292428E377EE06 FOREIGN KEY(WEATHER_ID) REFERENCES WEATHER(ID)) ALTER TABLE ATMOSPHERE ADD CONSTRAINT FK2AF43942E377EE06 FOREIGN KEY(WEATHER_ID) REFERENCES WEATHER(ID) ALTER TABLE CONDITION ADD CONSTRAINT FK441B8CFBE377EE06 FOREIGN KEY(WEATHER_ID) REFERENCES WEATHER(ID) -ALTER TABLE ATMOSPHERE ALTER COLUMN ID RESTART WITH 2 -ALTER TABLE CONDITION ALTER COLUMN ID RESTART WITH 2 -ALTER TABLE WEATHER ALTER COLUMN ID RESTART WITH 2 -ALTER TABLE WIND ALTER COLUMN ID RESTART WITH 2 +ALTER TABLE ATMOSPHERE ALTER COLUMN ID RESTART WITH 3 +ALTER TABLE CONDITION ALTER COLUMN ID RESTART WITH 3 +ALTER TABLE WEATHER ALTER COLUMN ID RESTART WITH 3 +ALTER TABLE WIND ALTER COLUMN ID RESTART WITH 3 CREATE USER SA PASSWORD "" GRANT DBA TO SA SET WRITE_DELAY 10 SET SCHEMA PUBLIC INSERT INTO ATMOSPHERE VALUES(1,'80','29.74','2','10',1) +INSERT INTO ATMOSPHERE VALUES(2,'80','29.74','2','10',2) INSERT INTO CONDITION VALUES(1,'33','Sat, 02 Jun 2012 1:52 am CDT','49','Fair',1) +INSERT INTO CONDITION VALUES(2,'33','Sat, 02 Jun 2012 1:52 am CDT','49','Fair',2) INSERT INTO LOCATION VALUES('60202','Evanston','US','IL') INSERT INTO WEATHER VALUES(1,'2012-06-02 15:16:34.500000000','60202') +INSERT INTO WEATHER VALUES(2,'2012-06-02 15:55:50.546000000','60202') INSERT INTO WIND VALUES(1,'49','190','3',1) +INSERT INTO WIND VALUES(2,'49','190','3',2) diff --git a/mvnex-examples/simple-webapp/pom.xml b/mvnex-examples/simple-webapp/pom.xml index 804b07b3..646c52a4 100644 --- a/mvnex-examples/simple-webapp/pom.xml +++ b/mvnex-examples/simple-webapp/pom.xml @@ -4,8 +4,8 @@ http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - org.sonatype.mvnexbook - mvnex-examples + org.sonatype.mavenbook + maven-examples 1.0 simple-webapp