You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by George Christman <gc...@cardaddy.com> on 2015/02/05 20:09:58 UTC
Override hibernate.cfg.xml with QaModule hibernate config
Hi guys, I'm trying to setup an in memory database for selenium testing.
I'm wondering if someone new how to override my hibernate.cfg.xml file with
something like contributeHibernateEntityPackageManager without a conflict
with the xml. Thanks in advance.
Re: Override hibernate.cfg.xml with QaModule hibernate config
Posted by George Christman <gc...@cardaddy.com>.
Perfect, thanks Kalle.
On Thu, Feb 5, 2015 at 3:53 PM, Kalle Korhonen <ka...@gmail.com>
wrote:
> Use different execution modes for production and testing, then contribute a
> custom HibernateConfigurer that supplies hibernate configuration file with
> mode specific name, e.g. "hibernate-production.cfg.xml" or
> "hibernate-test.cfg.xml".
>
> Kalle
>
> On Thu, Feb 5, 2015 at 11:09 AM, George Christman <gchristman@cardaddy.com
> >
> wrote:
>
> > Hi guys, I'm trying to setup an in memory database for selenium testing.
> > I'm wondering if someone new how to override my hibernate.cfg.xml file
> with
> > something like contributeHibernateEntityPackageManager without a conflict
> > with the xml. Thanks in advance.
> >
>
--
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York
Re: Override hibernate.cfg.xml with QaModule hibernate config
Posted by Kalle Korhonen <ka...@gmail.com>.
Use different execution modes for production and testing, then contribute a
custom HibernateConfigurer that supplies hibernate configuration file with
mode specific name, e.g. "hibernate-production.cfg.xml" or
"hibernate-test.cfg.xml".
Kalle
On Thu, Feb 5, 2015 at 11:09 AM, George Christman <gc...@cardaddy.com>
wrote:
> Hi guys, I'm trying to setup an in memory database for selenium testing.
> I'm wondering if someone new how to override my hibernate.cfg.xml file with
> something like contributeHibernateEntityPackageManager without a conflict
> with the xml. Thanks in advance.
>