[
https://issues.apache.org/jira/browse/OPENJPA-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660061#action_12660061
]
Milosz Tylenda commented on OPENJPA-847:
----------------------------------------
DBDictionary says:
metaData = conn.getMetaData();
try {
// JDBC3-only method, so it might throw a
// AbstractMethodError
isJDBC3 = metaData.getJDBCMajorVersion() >= 3;
supportsGetGeneratedKeys =
metaData.supportsGetGeneratedKeys();
} catch (Throwable t) {
// ignore if not JDBC3
}
However, DelegatingDatabaseMetaData.supportsGetGeneratedKeys always throws an
exception:
public boolean supportsGetGeneratedKeys() throws SQLException {
throw new UnsupportedOperationException();
}
Now , as OpenJPA requires Java 5 (JDBC 3), we probably can delegate all
DelegatingDatabaseMetaData methods to the delegate or even get rid of
DelegatingDatabaseMetaData completely.
> Retrieving database generated keys gets never enabled
> -----------------------------------------------------
>
> Key: OPENJPA-847
> URL: https://issues.apache.org/jira/browse/OPENJPA-847
> Project: OpenJPA
> Issue Type: Bug
> Components: jdbc
> Affects Versions: 2.0.0
> Reporter: Milosz Tylenda
> Priority: Minor
>
> Support for getting generated keys (OPENJPA-736) needs a bit of more work -
> DBDictionary.supportsGetGeneratedKeys is always false.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.