cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Tkacheva (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAY-1344) CreateIfNoSchemaStrategy runs too late - pk generation happens before
Date Wed, 23 Dec 2009 13:46:29 GMT

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


Mime
View raw message