openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milosz Tylenda (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-847) Retrieving database generated keys gets never enabled
Date Wed, 31 Dec 2008 10:26:44 GMT

    [ 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.


Mime
View raw message