tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Elkjær <mar...@elkjaer-it.dk>
Subject Re: Unittest Hibernate
Date Tue, 24 Nov 2009 10:58:30 GMT
Thanks Jean-Louis!
Simple...stupid me :)

-Martin



2009/11/24 Jean-Louis MONTEIRO <jean-louis.monteiro@atosorigin.com>

>
> 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.
>
>


-- 
Venlig hilsen

Martin Elkjær
----------------------------------------------------
Mail: martin@elkjaer-it.dk
Tlf: +45 30275928
http://www.mintraeningsdagbog.dk

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message