You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Martin Elkjær <ma...@elkjaer-it.dk> on 2009/11/24 09:40:07 UTC
Unittest Hibernate
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
Re: Unittest Hibernate
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
No problem.
Jean-Louis
Martin Elkjær wrote:
>
> Thanks Jean-Louis!
> Simple...stupid me :)
>
> -Martin
>
>
>
> 2009/11/24 Jean-Louis MONTEIRO <je...@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
>
>
--
View this message in context: http://old.nabble.com/Unittest-Hibernate-tp26492294p26493963.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Re: Unittest Hibernate
Posted by Martin Elkjær <ma...@elkjaer-it.dk>.
Thanks Jean-Louis!
Simple...stupid me :)
-Martin
2009/11/24 Jean-Louis MONTEIRO <je...@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
Re: Unittest Hibernate
Posted by Jean-Louis MONTEIRO <je...@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.