cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Loading data maps from JARs
Date Tue, 16 Feb 2010 13:00:25 GMT

On Feb 16, 2010, at 2:38 PM, Borut BolĨina wrote:

> Question is: Can ResourceLocator be configured to read mapping files
> my-map-1.map.xml and my-map-2.map.xml from the root of project- 
> model1.jar
> and project-model2.jar?
>
> The DefaultConfiguration read from classpath, but it seems it does  
> not find
> mapping files inside the JARs (at root of it).

It is odd that it doesn't work. When looking for DataMap XML file all  
Cayenne does is ClassLoader.getResource()

Andrus


Mime
View raw message