Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 37658 invoked from network); 9 May 2010 18:10:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 May 2010 18:10:54 -0000 Received: (qmail 46067 invoked by uid 500); 9 May 2010 18:10:52 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 45974 invoked by uid 500); 9 May 2010 18:10:52 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 45964 invoked by uid 99); 9 May 2010 18:10:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 18:10:52 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jemos.infra@googlemail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 May 2010 18:10:45 +0000 Received: by wya21 with SMTP id 21so1705056wya.30 for ; Sun, 09 May 2010 11:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=OG3dTfbWY9tEMlSwSwzshrMikycGZxw4G4/sBZ9k0u4=; b=exY3x5n59Cs5iejGXGz2VMnp7Fos0vCzv3pu7wZgfppE2WWz9joCSRiN6m42mDJzFi zkfQVW1mc0w+f8vLE2ouL3lbbOy+36OAIoWURmme4xReY0ueKrYJE12EtdWjNmkPUGiK TYyW+PP9R0Yv3mxQhqRWwQhtM7htCJ8BgNhsk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=TbZEQ/DDrjRWiM1c5QY7zTXF9KY86kGu72ZVZAwuVmL6rwZj4aj6KUY9Q1A8+I7k+/ 6ZK4K/p4xCJwdkzfIhnzr8wJcgRgJKRZeudmL9yiTK2iONyHrxnV8pKw1ArLuFPKGVub xS9FsvcXQJsnaiIGrHfWK1ef5b91I4GNkcQ/s= Received: by 10.227.147.132 with SMTP id l4mr2726213wbv.155.1273428625148; Sun, 09 May 2010 11:10:25 -0700 (PDT) Received: from [192.168.0.3] (93-97-52-17.zone5.bethere.co.uk [93.97.52.17]) by mx.google.com with ESMTPS id u5sm225987wbc.8.2010.05.09.11.10.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 May 2010 11:10:24 -0700 (PDT) Subject: Re: Maven filter and hsqldb mem hibernate.hbm2ddl.auto From: Jemos Infra To: Maven Users List In-Reply-To: <28504415.post@talk.nabble.com> References: <28504415.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 09 May 2010 19:10:17 +0100 Message-ID: <1273428617.3518.4.camel@odin> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Stephane, the pom doesn't show any filtering / hibernate plugin. Regards, M. On Sun, 2010-05-09 at 11:03 -0700, Stephane Eybert wrote: > Hello, > > I have a pom.xml file with a filter for some data source properties. > > The filter works for the data source properties, that is, for: > > hibernate.dialect=org.hibernate.dialect.HSQLDialect > dataSource.driverClassName=org.hsqldb.jdbcDriver > dataSource.url=jdbc:hsqldb:mem:testdb > dataSource.username=sa > dataSource.password= > > and my integration test is successful. > > But when having also the following property in the filter file > > hibernate.hbm2ddl.auto=create > > I get an error message saying the sql statement could not be performed > because the table does not exist. > > What happens is that HSQLDB (in memory) does not create my table before > running the test, if the hibernate.hbm2ddl.auto is in the filter file > instead of being hard coded in the spring hibernate factory bean. > > But the property hibernate.dialect does not pose such a problem. It is > happily replaced by the value in the filter file. > > I would like to have the property hibernate.hbm2ddl.auto being replaced by > the value in the filter file, so as to have a different value, when running > the integration test in HSQLDB (value should be create) and when running in > production (value should be validate). > > http://old.nabble.com/file/p28504415/spring-hibernate.xml > spring-hibernate.xml > http://old.nabble.com/file/p28504415/data-source.properties > data-source.properties http://old.nabble.com/file/p28504415/pom.xml pom.xml > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org