return mappings;
}
private org.castor.jdo.conf.Database createDatabase(
final String name, final String db, final String[] mappings) {
Database database = _databases.get(db);
if (database.getEngine() == null) {
throw new CPAConfigException("No engine specified "
+ "in database config '" + db + "'.");
}
String engine = database.getEngine().toString();
DatabaseChoice choice = database.getDatabaseChoice();
if (choice == null) {
throw new CPAConfigException("Neither driver, datasource nor jndi specified "
+ "in database config '" + db + "'.");
}