Return-Path: X-Original-To: apmail-cayenne-commits-archive@www.apache.org Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3FFD2973B for ; Tue, 6 Mar 2012 15:02:21 +0000 (UTC) Received: (qmail 39055 invoked by uid 500); 6 Mar 2012 15:02:20 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 39031 invoked by uid 500); 6 Mar 2012 15:02:20 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 38992 invoked by uid 99); 6 Mar 2012 15:02:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 15:02:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 15:02:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DCED1B39E for ; Tue, 6 Mar 2012 15:01:58 +0000 (UTC) Date: Tue, 6 Mar 2012 15:01:58 +0000 (UTC) From: "Olga Tkacheva (Closed) (JIRA)" To: commits@cayenne.apache.org Message-ID: <1643565115.27570.1331046118906.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1093168866.21150.1326108639434.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (CAY-1650) [PATCH] Verify existence of tables if a default schema is specified MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAY-1650?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Olga Tkacheva closed CAY-1650. ------------------------------ Resolution: Fixed tested on derby, postgres - this patch work for both and I hope for other too. Joerg, thank you for your help. > [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 Schoenfisch > 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