Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 33207 invoked from network); 20 Feb 2011 15:39:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Feb 2011 15:39:46 -0000 Received: (qmail 75605 invoked by uid 500); 20 Feb 2011 15:39:46 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 75461 invoked by uid 500); 20 Feb 2011 15:39:43 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 75453 invoked by uid 99); 20 Feb 2011 15:39:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Feb 2011 15:39:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of grobmeier@gmail.com designates 209.85.214.171 as permitted sender) Received: from [209.85.214.171] (HELO mail-iw0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Feb 2011 15:39:38 +0000 Received: by iwr19 with SMTP id 19so676518iwr.16 for ; Sun, 20 Feb 2011 07:39:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=S5ru1vM/M/ow2WjThU4QZnj/gaE7auEPbzu4rfr9ims=; b=tS/WoBGV5M0kClBAb6qYsA7Iiu0PAidTqP+MAKwt4M+p1oy1hNFnynyA0zssJt/Qbd rtgWeYXxekH2jYmhzpHYfU4h/Jk+JSQVG4TQNoEDbsNPkvtFYGEmwoJaWhsDCtMNBBCs q7lXHd2iIdE/DRHlWY84vSbW1OqNFIPE3FpPg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=kvh3j03sFhvPUNSS5uiBeSG/z14znhbIHDlguJZ5vpOIm9hjeW6EcYmvidhdeGfEaI aj1uRI1N6dNMH6YI8vLGzpkVDr/VzZtq8oV5+YVmdz50UK2hp46vb+GdM18aX+Vdyf/W qhvELS69ADOCP1npPq6jLgxNDiT/ftIj2LFU0= Received: by 10.42.213.195 with SMTP id gx3mr636132icb.55.1298216357154; Sun, 20 Feb 2011 07:39:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.164.3 with HTTP; Sun, 20 Feb 2011 07:38:57 -0800 (PST) In-Reply-To: References: <4D6129A7.1040707@t-online.de> From: Christian Grobmeier Date: Sun, 20 Feb 2011 16:38:57 +0100 Message-ID: Subject: Re: Automatically creating database schema To: user@cayenne.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Actually i have made the same experience. It worked 1 time, then never again. But I didn't track it, I used the migration tool in the modeller. On Sun, Feb 20, 2011 at 4:32 PM, Andrus Adamchik w= rote: > Odd. Configuration seems correct. So what do you see in the logs when Cay= enne starts in your application? > > Andrus > > On Feb 20, 2011, at 4:48 PM, Thorben Wallmeyer wrote: > >> Hi everyone, >> >> I'm working with Cayenne and I'm trying to automatically create a schema= when cayenne connects for the first time the the configured databse. There= fore I've slighty changed my cayenne.xml file, so that it looks like: >> >> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 datasource=3D"module/storage/MeTexNode.drive= r.xml" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 factory=3D"org.apache.cayenne.conf.DriverDat= aSourceFactory" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 schema-update-strategy=3D"org.apache.cayenne= .access.dbsync.CreateIfNoSchemaStrategy"> >> >> >> >> >> So, I've added the attribute "schema-update-strategy" but nothing happen= s - no tables are generated. So what I'm doing wrong? Can you send me a sim= ple, working example? >> >> Best, >> >> Thorben > > --=20 http://www.grobmeier.de