cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: How to define Multiple datamap.xml files
Date Fri, 06 Jan 2017 12:47:37 GMT
You don't need to do anything special. You just create as many DataMaps in your project as
needed. You can have relationships between entities in different DataMaps. Though if you can
avoid such relationships, it usually results in a model that is easier to manage.


> On Jan 1, 2017, at 7:14 PM, Kumar <> wrote:
> Guys,
> A quick question. I am working on a project where we have around 2600 db
> entities. Currently my datamap.xml contains all the dbentity, objentity,
> dbrelationship and objrelationship. But the xml is too big and opening the
> xml and doing any changes seems very laggy.
> I heard that we can have multiple datamap.xml files and configure it in the
> cayenne-project.xml. Currently i defined few of my mapped queries in a
> separate xml and added that xml in the cayenne-project.xml. It is working
> as expected.
> Same like that can i move few of my dbentity, objentity,
> dbrelationship and objrelationship to
> a separate datamap.xml file?
> I tried but not working. Do i need to follow any order?
> Thanks in Advance,
> Kumar.

View raw message