/**
* Sets up Cayenne stack.
*/
protected void initCayenneStack(Map properties) {
Configuration cayenneConfig = new DefaultConfiguration(
Configuration.DEFAULT_DOMAIN_FILE);
try {
cayenneConfig.initialize();
cayenneConfig.didInitialize();
}
catch (Exception ex) {
throw new CayenneRuntimeException("Error starting Cayenne", ex);
}
this.configuration = cayenneConfig;
// TODO (Andrus 10/15/2005) this assumes that mapping has a single domain...
// do something about multiple domains
this.domain = cayenneConfig.getDomain();
}