You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Olga Tkacheva (JIRA)" <ji...@apache.org> on 2009/12/23 14:46:29 UTC

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

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