cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: Set DB Adapter in code
Date Tue, 18 Oct 2016 16:56:33 GMT
Something like this?

Collection<DataNode> nodes = runtime.getDataDomain().getDataNodes();

for (DataNode node : nodes) {

node.setAdapter(myNewAdapter);

}

On Tue, Oct 18, 2016 at 11:27 AM 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message