cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Cayenne Question
Date Fri, 23 Mar 2007 11:41:12 GMT
Hi Prashant,

Note that Cayenne user support is done via the mailing list, as it  
allows us to better share the community knowledge. I am ccy'ing the  
question to the list. Please feel free to continue this discussion on  
the list:

http://cayenne.apache.org/mailing-lists.html


On Mar 23, 2007, at 1:23 PM, Prashant J wrote:
> Hi Andrew,

It's Andrus, not Andrew :-)

> I am new to Cayenne. I am researching various OR mapping layers and  
> have been pretty impressed with the design and ease of use of  
> Cayenne. My question to you is, is it possible to store the  
> ORMappings in the database and load it into Cayenne? In other  
> words, can I write my own Configuration to load the the meta data  
> from another source rather than from the XML file structure? If so,  
> please tell me how. If not, please tell me what the philosophy is.

Yes you can - this is just XML. Here is one possible scenario that  
uses Cayenne to bootstrap Cayenne:

* Create a separate Cayenne project to map you "bootstrap" tables  
that store the Cayenne metadata.
* Create your own Configuration subclass that internally instantiates  
a temporary throwaway Configuration just to read the metadata.

Feel free to ask if you get stuck with the API.

Cheers,
Andrus



Mime
View raw message