cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2186) MySQL and Derby PK generators should not commit explicitly
Date Mon, 02 Jan 2017 14:14:58 GMT
Andrus Adamchik created CAY-2186:
------------------------------------

             Summary: MySQL and Derby PK generators should not commit explicitly
                 Key: CAY-2186
                 URL: https://issues.apache.org/jira/browse/CAY-2186
             Project: Cayenne
          Issue Type: Bug
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
            Priority: Minor


MySQL and Derby PK generators explicitly commit the connection when they get a new PK. This
goes against Cayenne strategy for *external* transaction management (do not commit from inside
Cayenne, let the transaction manager commit when needed). 

Haven't tested the behavior with a real tx manager, but without one (and with external transactions)
these 2 PK generators add a side effect of committing whatever else was uncommitted on the
connection in question.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message