cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugi Thordarson <h...@karlmenn.is>
Subject Re: Set DB Adapter in code
Date Tue, 18 Oct 2016 17:15:48 GMT
Yeah, I’m managing to connect to the DB fine, but it’s still using the Custom Adapter set
in my data node, I want to override that.

Cheers,
- hugi




> On 18. okt. 2016, at 16:34, Michael Gentry <mgentry@masslight.net> wrote:
> 
> Here is one example of using SimpleJNDI to bind to a local H2 DB for
> testing (assuming your normal application uses JNDI):
> 
> https://github.com/mrg/cbe/blob/master/UnitTesting/src/test/java/cbe/testing/AppTest.java
> 
> The example is still on Cayenne 3.0.2, but hopefully that'll help.
> 
> mrg
> 
> 
> On Tue, Oct 18, 2016 at 12:26 PM, Hugi Thordarson <hugi@karlmenn.is> wrote:
> 
>> Hi all,
>> when running tests I need to switch the DB adapter to H2Adapter (my
>> DataNode has a Customer adaptor). How would this be easiest to do?
>> 
>> Cheers,
>> - hugi


Mime
View raw message