You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Joerg S (Updated) (JIRA)" <ji...@apache.org> on 2012/01/09 12:32:39 UTC

[jira] [Updated] (CAY-1650) [PATCH] Verify existence of tables if a default schema is specified

     [ https://issues.apache.org/jira/browse/CAY-1650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joerg S updated CAY-1650:
-------------------------

    Attachment: SchemaAnalyzer.java.patch
    
> [PATCH] Verify existence of tables if a default schema is specified
> -------------------------------------------------------------------
>
>                 Key: CAY-1650
>                 URL: https://issues.apache.org/jira/browse/CAY-1650
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 3.1M4
>            Reporter: Joerg S
>            Priority: Minor
>         Attachments: SchemaAnalyzer.java.patch
>
>
> I'm using a ThrowOnPartialOrCreateSchemaStrategy and I ran into the problem that my tables are not generated if I specify a schema for the DbEntities. SchemaAnalyzer.compareTables only checks if the schema exists and doesn't verify if it actually contains any tables. I'm using the latest trunk (rev 1222604) and Postgres 8.3. The following patch fixes the problem for me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira