diff --git a/jOOQ-codegen-maven-example/pom.xml b/jOOQ-codegen-maven-example/pom.xml index 32ec280854..ba0fc15694 100644 --- a/jOOQ-codegen-maven-example/pom.xml +++ b/jOOQ-codegen-maven-example/pom.xml @@ -9,7 +9,7 @@ org.jooq jooq-codegen-maven-example - 2.0.5-SNAPSHOT + 2.0.5 jar jOOQ Codegen Maven @@ -51,7 +51,7 @@ org.jooq jooq - 2.0.5-SNAPSHOT + 2.0.5 jar compile @@ -106,7 +106,7 @@ org.jooq jooq-codegen-maven - 2.0.5-SNAPSHOT + 2.0.5 exec1 diff --git a/jOOQ-codegen-maven/pom.xml b/jOOQ-codegen-maven/pom.xml index d925373655..cf2516cae7 100644 --- a/jOOQ-codegen-maven/pom.xml +++ b/jOOQ-codegen-maven/pom.xml @@ -9,7 +9,7 @@ org.jooq jooq-codegen-maven - 2.0.5-SNAPSHOT + 2.0.5 maven-plugin jOOQ Codegen Maven @@ -160,7 +160,7 @@ org.jooq jooq-codegen - 2.0.5-SNAPSHOT + 2.0.5 jar diff --git a/jOOQ-codegen/pom.xml b/jOOQ-codegen/pom.xml index 6b31a60638..329c8cc0ef 100644 --- a/jOOQ-codegen/pom.xml +++ b/jOOQ-codegen/pom.xml @@ -10,7 +10,7 @@ org.jooq jooq-codegen - 2.0.5-SNAPSHOT + 2.0.5 jar jOOQ Codegen @@ -150,14 +150,14 @@ org.jooq jooq - 2.0.5-SNAPSHOT + 2.0.5 jar compile org.jooq jooq-meta - 2.0.5-SNAPSHOT + 2.0.5 jar compile diff --git a/jOOQ-console/pom.xml b/jOOQ-console/pom.xml index c1dd27b5d3..f6335359da 100644 --- a/jOOQ-console/pom.xml +++ b/jOOQ-console/pom.xml @@ -10,7 +10,7 @@ org.jooq jooq-console - 2.0.5-SNAPSHOT + 2.0.5 jar jOOQ diff --git a/jOOQ-meta/pom.xml b/jOOQ-meta/pom.xml index b679c48f5b..bd728e641f 100644 --- a/jOOQ-meta/pom.xml +++ b/jOOQ-meta/pom.xml @@ -9,7 +9,7 @@ org.jooq jooq-meta - 2.0.5-SNAPSHOT + 2.0.5 jar jOOQ Meta @@ -149,7 +149,7 @@ org.jooq jooq - 2.0.5-SNAPSHOT + 2.0.5 jar compile diff --git a/jOOQ-release/build.xml b/jOOQ-release/build.xml index e2bc56586c..e784b67caa 100644 --- a/jOOQ-release/build.xml +++ b/jOOQ-release/build.xml @@ -6,7 +6,7 @@ - + diff --git a/jOOQ-release/release/template/RELEASENOTES.txt b/jOOQ-release/release/template/RELEASENOTES.txt index c8d594b63a..39812057bd 100644 --- a/jOOQ-release/release/template/RELEASENOTES.txt +++ b/jOOQ-release/release/template/RELEASENOTES.txt @@ -9,6 +9,111 @@ http://www.jooq.org/notes.php For a text version, see http://www.jooq.org/inc/RELEASENOTES.txt +Version 2.0.5 - February 26, 2012 +================================================================= + +This release finally introduced basic runtime configuration +features for the jOOQ Factory. This configuration now includes: + +- Execute listener and SQL tracing support. jOOQ allows you to + hook your own listeners into jOOQ's query execution engine to + be notified of all sorts of events +- The existing SchemaMapping features. They are now part of the + runtime configuration +- StatementType settings. Specify whether a Factory should + execute java.sql.PreparedStatements (with bind variables) or + static java.sql.Statements with inlined variables. + +The listener and tracing support has been requested by +Christopher Deckers, a new jOOQ user who has had the courtesy to +contribute the new jOOQ Console, which is documented here: + +http://www.jooq.org/manual/ADVANCED/Console/ + +Apart from that, another long-requested feature is now fully +implemented: The GeneratorStrategy, allowing for custom naming +strategies in generated source code. This will allow for +generating custom table / record class name prefixes / suffixes, +as well as overriding the default behaviour for rendering UPPER, +lower and CamelCase artefacts. See the manual for details: + +http://www.jooq.org/manual/META/Configuration/ + +Features and improvements +------------------------- +#93 - Add Field.equalIgnoreCase(), Field.notEqualIgnoreCase() +#408 - Add class prefixes, suffixes and other options to the + code generator +#492 - Add runtime configuration +#1107 - Let Field.contains() support the Postgres ARRAY @> ARRAY + operator +#1140 - Add ResultQuery.fetchResultSet() to return the underlying + JDBC result set +#1143 - Add Result.isNotEmpty() for convenience +#1145 - Add runtime configuration to specify whether jOOQ should + execute java.sql.PreparedStatement (with bind variables) + or a java.sql.Statement (with inlined parameters) +#1146 - Add Query.getSQL(boolean) to indicate that bind values + should be inlined (as a convenience for + Factory.renderInlined(QueryPart)) +#1148 - Add Cursor.resultSet() to expose the underlying ResultSet +#1149 - Allow for optional + "http://www.jooq.org/xsd/jooq-codegen-2.0.4.xsd" + namespace in jooq-codegen configuration +#1152 - Add & org.jooq.EnumType> + E MySQLFactory.enumType(Class, int) for enum reverse + lookups of MySQL-specific enums +#1159 - Support matching numbers with LIKE, e.g. ID LIKE '%33%' +#1160 - Implement Field.contains(), .startsWith(), .endsWith() + for numeric values, too +#1161 - Use reflection to remove compile-time dependency on + ojdbc for creating ARRAYs +#1162 - Integrate jOOR into jOOQ for simpler reflection +#1164 - Distinguish between Definition.getInputName(), + .getOutputName() +#1165 - Add constraint name to generated javadoc +#1167 - Trivial issue with org.jooq.Factory.exists Javadoc - + GitHub issue #10 +#1169 - Add Configuration.setData(), getData() to convey custom + data in a configuration's lifecycle +#1172 - Add runtime configuration to deactivate JooqLogger +#1177 - Add jOOQ-Console module to jOOQ +#1184 - Add DataType.isArray() + +API changes (backwards-compatible) +---------------------------------- +#1142 - Rename Result.exportXML() to Result.intoXML() to stay + more consistent +#1151 - Deprecate SchemaMapping in favour of new runtime + configuration + +Bug fixes +--------- +#978 - Schema.getTables() and similar methods return empty lists + when Schema is mapped with SchemaMapping +#1153 - Bad inlining of booleans in Sybase ASE / DB2 / Oracle + SQL Server / SQLite +#1154 - Bad inlining of byte[] in most dialects +#1155 - byte[] are erroneously converted to String when using + Record.intoArray() +#1156 - Bad inlining of DATE / TIME / TIMESTAMP data types in + Ingres (and other dialects, when the setting differs from + the default) +#1166 - Some generated Javadoc uses naming strategy or plain + output name, instead of qualified output name +#1168 - Oracle packages are generated as static, instead of + static final +#1175 - Factory.use() seems to render SQL with the Schema name + still present +#1179 - Oracle-generated ArrayRecords need a reference to + org.jooq.Schema to read TABLE of OBJECT from stored + procedures + +Test cases +---------- +#1147 - Add integration tests for executing SQL generated using + Factory.renderInlined() + Version 2.0.4 - February 12, 2012 ================================================================= diff --git a/jOOQ-spring/pom.xml b/jOOQ-spring/pom.xml index e76bc6f567..9be63b513f 100644 --- a/jOOQ-spring/pom.xml +++ b/jOOQ-spring/pom.xml @@ -10,7 +10,7 @@ org.jooq jooq-spring - 2.0.5-SNAPSHOT + 2.0.5 jar jOOQ Spring @@ -188,7 +188,7 @@ org.jooq jooq - 2.0.5-SNAPSHOT + 2.0.5 jar compile diff --git a/jOOQ-test/launch/jOOQIngresTest.launch b/jOOQ-test/launch/jOOQIngresTest.launch index a56257026f..0c2f990296 100644 --- a/jOOQ-test/launch/jOOQIngresTest.launch +++ b/jOOQ-test/launch/jOOQIngresTest.launch @@ -16,15 +16,15 @@ - - - - + + + + diff --git a/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java b/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java index c216c06906..a2de85b1bc 100644 --- a/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java +++ b/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java @@ -201,7 +201,6 @@ public abstract class jOOQAbstractTest< public static Map scripts = new HashMap(); private static RemoteDebuggerServer SERVER; - private static TestStatisticsListener STATISTICS; protected void execute(String script) throws Exception { Statement stmt = null; @@ -209,6 +208,7 @@ public abstract class jOOQAbstractTest< String allSQL = scripts.get(script); if (allSQL == null) { try { + log.info("Loading", script); File file = new File(getClass().getResource(script).toURI()); allSQL = FileUtils.readFileToString(file); testSQLWatch.splitDebug("Loaded SQL file"); diff --git a/jOOQ-website/inc/RELEASENOTES.txt b/jOOQ-website/inc/RELEASENOTES.txt index c8d594b63a..39812057bd 100644 --- a/jOOQ-website/inc/RELEASENOTES.txt +++ b/jOOQ-website/inc/RELEASENOTES.txt @@ -9,6 +9,111 @@ http://www.jooq.org/notes.php For a text version, see http://www.jooq.org/inc/RELEASENOTES.txt +Version 2.0.5 - February 26, 2012 +================================================================= + +This release finally introduced basic runtime configuration +features for the jOOQ Factory. This configuration now includes: + +- Execute listener and SQL tracing support. jOOQ allows you to + hook your own listeners into jOOQ's query execution engine to + be notified of all sorts of events +- The existing SchemaMapping features. They are now part of the + runtime configuration +- StatementType settings. Specify whether a Factory should + execute java.sql.PreparedStatements (with bind variables) or + static java.sql.Statements with inlined variables. + +The listener and tracing support has been requested by +Christopher Deckers, a new jOOQ user who has had the courtesy to +contribute the new jOOQ Console, which is documented here: + +http://www.jooq.org/manual/ADVANCED/Console/ + +Apart from that, another long-requested feature is now fully +implemented: The GeneratorStrategy, allowing for custom naming +strategies in generated source code. This will allow for +generating custom table / record class name prefixes / suffixes, +as well as overriding the default behaviour for rendering UPPER, +lower and CamelCase artefacts. See the manual for details: + +http://www.jooq.org/manual/META/Configuration/ + +Features and improvements +------------------------- +#93 - Add Field.equalIgnoreCase(), Field.notEqualIgnoreCase() +#408 - Add class prefixes, suffixes and other options to the + code generator +#492 - Add runtime configuration +#1107 - Let Field.contains() support the Postgres ARRAY @> ARRAY + operator +#1140 - Add ResultQuery.fetchResultSet() to return the underlying + JDBC result set +#1143 - Add Result.isNotEmpty() for convenience +#1145 - Add runtime configuration to specify whether jOOQ should + execute java.sql.PreparedStatement (with bind variables) + or a java.sql.Statement (with inlined parameters) +#1146 - Add Query.getSQL(boolean) to indicate that bind values + should be inlined (as a convenience for + Factory.renderInlined(QueryPart)) +#1148 - Add Cursor.resultSet() to expose the underlying ResultSet +#1149 - Allow for optional + "http://www.jooq.org/xsd/jooq-codegen-2.0.4.xsd" + namespace in jooq-codegen configuration +#1152 - Add & org.jooq.EnumType> + E MySQLFactory.enumType(Class, int) for enum reverse + lookups of MySQL-specific enums +#1159 - Support matching numbers with LIKE, e.g. ID LIKE '%33%' +#1160 - Implement Field.contains(), .startsWith(), .endsWith() + for numeric values, too +#1161 - Use reflection to remove compile-time dependency on + ojdbc for creating ARRAYs +#1162 - Integrate jOOR into jOOQ for simpler reflection +#1164 - Distinguish between Definition.getInputName(), + .getOutputName() +#1165 - Add constraint name to generated javadoc +#1167 - Trivial issue with org.jooq.Factory.exists Javadoc - + GitHub issue #10 +#1169 - Add Configuration.setData(), getData() to convey custom + data in a configuration's lifecycle +#1172 - Add runtime configuration to deactivate JooqLogger +#1177 - Add jOOQ-Console module to jOOQ +#1184 - Add DataType.isArray() + +API changes (backwards-compatible) +---------------------------------- +#1142 - Rename Result.exportXML() to Result.intoXML() to stay + more consistent +#1151 - Deprecate SchemaMapping in favour of new runtime + configuration + +Bug fixes +--------- +#978 - Schema.getTables() and similar methods return empty lists + when Schema is mapped with SchemaMapping +#1153 - Bad inlining of booleans in Sybase ASE / DB2 / Oracle + SQL Server / SQLite +#1154 - Bad inlining of byte[] in most dialects +#1155 - byte[] are erroneously converted to String when using + Record.intoArray() +#1156 - Bad inlining of DATE / TIME / TIMESTAMP data types in + Ingres (and other dialects, when the setting differs from + the default) +#1166 - Some generated Javadoc uses naming strategy or plain + output name, instead of qualified output name +#1168 - Oracle packages are generated as static, instead of + static final +#1175 - Factory.use() seems to render SQL with the Schema name + still present +#1179 - Oracle-generated ArrayRecords need a reference to + org.jooq.Schema to read TABLE of OBJECT from stored + procedures + +Test cases +---------- +#1147 - Add integration tests for executing SQL generated using + Factory.renderInlined() + Version 2.0.4 - February 12, 2012 ================================================================= diff --git a/jOOQ/pom.xml b/jOOQ/pom.xml index 9459208c79..44dd8d983c 100644 --- a/jOOQ/pom.xml +++ b/jOOQ/pom.xml @@ -10,7 +10,7 @@ org.jooq jooq - 2.0.5-SNAPSHOT + 2.0.5 jar jOOQ