tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <jean-louis.monte...@atosorigin.com>
Subject Re: Unittest Hibernate
Date Tue, 24 Nov 2009 10:45:34 GMT

Hi,

You should not use the name of the datasource but the name of the
persistence unit.
Here are more details 
http://openejb.apache.org/3.0/embedded-configuration.html
http://openejb.apache.org/3.0/embedded-configuration.html 

Jean-Louis


Martin Elkjær wrote:
> 
> Hi,
> 
> I'm doing some unittest, and I'm trying to override Hibernate properties
> in
> my persistence unit:
> 
> p.put("mtdUnManagedDatabase.hibernate.hbm2ddl.auto", "create-drop");
> 
> But all I get is a warning:
> WARN - Property "hibernate.hbm2ddl.auto" not supported by
> "mtdUnManagedDatabase"
> 
> 
> Any suggestions ?
> 
> -Martin
> 
> 

-- 
View this message in context: http://old.nabble.com/Unittest-Hibernate-tp26492294p26493758.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message