You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2009/12/20 22:50:18 UTC

[jira] Created: (CAY-1344) CreateIfNoSchemaStrategy runs too late - pk generation happens before

CreateIfNoSchemaStrategy runs too late - pk generation happens before
---------------------------------------------------------------------

                 Key: CAY-1344
                 URL: https://issues.apache.org/jira/browse/CAY-1344
             Project: Cayenne
          Issue Type: Bug
          Components: Cayenne Core Library
    Affects Versions: 3.0 beta 1, 3.1M1
            Reporter: Andrus Adamchik
            Assignee: Olga Tkacheva
             Fix For: 3.0 beta 2, 3.1M1


When writing an new tutorial, I noticed a problem with CreateIfNoSchemaStrategy. It is invoked from DataNode.performQueries, and if the first Cayenne operation is INSERT, PK generator is not using DataNode.performQueries, but instead does DataNode.getDataSource().getConnection(), and uses the connection directly. So we need to intercept this in some other place (maybe in the Node DataSource decorator's getConnection()??)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CAY-1344) CreateIfNoSchemaStrategy runs too late - pk generation happens before

Posted by "Olga Tkacheva (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAY-1344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Tkacheva closed CAY-1344.
------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.1M1)

> CreateIfNoSchemaStrategy runs too late - pk generation happens before
> ---------------------------------------------------------------------
>
>                 Key: CAY-1344
>                 URL: https://issues.apache.org/jira/browse/CAY-1344
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>    Affects Versions: 3.0 beta 1, 3.1M1
>            Reporter: Andrus Adamchik
>            Assignee: Olga Tkacheva
>             Fix For: 3.0 beta 2
>
>
> When writing an new tutorial, I noticed a problem with CreateIfNoSchemaStrategy. It is invoked from DataNode.performQueries, and if the first Cayenne operation is INSERT, PK generator is not using DataNode.performQueries, but instead does DataNode.getDataSource().getConnection(), and uses the connection directly. So we need to intercept this in some other place (maybe in the Node DataSource decorator's getConnection()??)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.