tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Kwapisz" <mkwap...@zsk.p.lodz.pl>
Subject RE: Configuring hibernate properties in unit tests
Date Sun, 31 Aug 2008 17:34:59 GMT
I think that blog entry can be useful. 
http://qbeukes.blogspot.com/2008/08/toplink-as-your-openejb-persistence.html

Regards
-- 
Marcin Kwapisz
Division of Computer Networks
Technical Univeristy of Lodz, Poland

> Hi,
> 
> I'm using openejb with hibernate for unit tetsting my EJBs and I'm
> running
> into problems with persistence.xml. I am using a different hibernate
> dialect
> in these particular tests to my production code (because I'm using the
> HSQL
> in memory database for testing but MySQL for production) and I can't
> find
> any way to change the hibernate.dialect property other than by using a
> different persistence.xml in the test.
> 
> I already ran into this problem once with the TransactionManagerLookup
> property and solved it using the suggestion
> http://openejb.apache.org/3.0/hibernate.html here  but I don't want to
> take
> this approach for every property, and besides it wouldn't even be
> appropriate for some.
> 
> Basically I am asking if there is a way of programmatically setting
> hibernate properties or whether I should stick to using different
> versions
> of persistence.xml
> 
> Incidentally I have had a good look through the forums and googled
> extensively (cue someone finding the answer with their first search) :)
> and
> I am no kind of expert so I expect I have just missed something obvious
> somewhere.
> 
> Thanks in advance
> 
> 
> 
> --
> View this message in context: http://www.nabble.com/Configuring-
> hibernate-properties-in-unit-tests-tp19167232p19167232.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message