cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <>
Subject Re: multiple database querying
Date Thu, 17 May 2012 13:31:59 GMT
Hi Bryan,

I'm not sure you need two DataDomains.  Have you tried:


Then make sure that the DataNode for DataMapForDB1 is DataNodeForDB1
and the DataNode for DataMapForDB2 is DataNodeForDB2.


On Thu, May 17, 2012 at 8:06 AM, Bryan Lewis <> wrote:
> We need to fetch objects from a second database.  (That is, query an entity
> in a second domain.)  I've tried a couple of quick things -- putting two
> domains in one cayenne.xml project -- but I've been unable to make it work,
> in Cayenne 3.0.2 anyway.
> I found CAY-1318 which says, "Multi-datadomain runtime configurations offer
> no advantage over multiple configurations with a single domain each.  So
> going to change the project structure to only support a single
> DataDomain."  It says it was fixed in 3.1.
> So if we upgrade to 3.1 will we have an easier time?  Are there any
> examples of querying from multiple configurations?
> Thanks,
> Bryan Lewis

View raw message