Release 2.0.5

This commit is contained in:
Lukas Eder 2012-02-26 19:01:06 +00:00
parent 0d46a39d35
commit f9b4cc4448
12 changed files with 230 additions and 20 deletions

View File

@ -9,7 +9,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven-example</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<packaging>jar</packaging>
<name>jOOQ Codegen Maven</name>
@ -51,7 +51,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
@ -106,7 +106,7 @@
<plugin>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<executions>
<execution>
<id>exec1</id>

View File

@ -9,7 +9,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<packaging>maven-plugin</packaging>
<name>jOOQ Codegen Maven</name>
@ -160,7 +160,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<type>jar</type>
</dependency>
<dependency>

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<packaging>jar</packaging>
<name>jOOQ Codegen</name>
@ -150,14 +150,14 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq-meta</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-console</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<packaging>jar</packaging>
<name>jOOQ</name>

View File

@ -9,7 +9,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-meta</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<packaging>jar</packaging>
<name>jOOQ Meta</name>
@ -149,7 +149,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -6,7 +6,7 @@
<!-- Run a full mvn clean package install deploy first before this -->
<target name="release" description="Release a new version">
<property name="version" value="2.0.4"/>
<property name="version" value="2.0.5"/>
<mkdir dir="${dir.release}/versions" />
<mkdir dir="${dir.release}/${version}" />

View File

@ -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 <E extends java.lang.Enum<E> & org.jooq.EnumType>
E MySQLFactory.enumType(Class<E>, 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
=================================================================

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq-spring</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<packaging>jar</packaging>
<name>jOOQ Spring</name>
@ -188,7 +188,7 @@
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<type>jar</type>
<scope>compile</scope>
</dependency>

View File

@ -16,15 +16,15 @@
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6&quot; javaProject=&quot;jOOQ-test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;jOOQ-test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;jOOQ&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;jOOQ-codegen&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/jOOQ-test/lib/commons-io-1.4.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/jOOQ-test/lib/junit.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/jOOQ-test/lib/log4j-1.2.16.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/jOOQ-test/lib/iijdbc.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER&quot; javaProject=&quot;jOOQ&quot; path=&quot;3&quot; type=&quot;4&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/jOOQ-test/lib/joor-0.9.1.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;jOOQ-test&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;jOOQ&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;jOOQ-codegen&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry path=&quot;3&quot; projectName=&quot;jOOQ-console&quot; type=&quot;1&quot;/&gt;&#13;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jooq.test.jOOQIngresTest"/>

View File

@ -201,7 +201,6 @@ public abstract class jOOQAbstractTest<
public static Map<String, String> scripts = new HashMap<String, String>();
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");

View File

@ -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 <E extends java.lang.Enum<E> & org.jooq.EnumType>
E MySQLFactory.enumType(Class<E>, 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
=================================================================

View File

@ -10,7 +10,7 @@
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.5</version>
<packaging>jar</packaging>
<name>jOOQ</name>