cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Working with 2 dataNode
Date Wed, 05 Apr 2006 12:05:35 GMT

On Apr 5, 2006, at 3:47 PM, emre.yilmaz@htr.com.tr wrote:

> Hi,
>
> I create 2 databases. These databases has the same tables and I  
> want to insert and delete actions to them with the same context. Is  
> there any way to create 2
> dataNodes attached to one dataContext.
>
> Thank you..


The only way Cayenne can currently resolve conflicting table names is  
by separating them in two DataDomains. This means you'll have to use  
two DataContexts in the app:

DataContext c1 = DataContext.createDataContext("domain1");
DataContext c2 = DataContext.createDataContext("domain2");

Andrus

Mime
View raw message