public static void main(String[] args)
throws Exception {
ModelManager oMan = new ModelManager();
DAO oDao = null;
oDao = new DAO();
oDao.init(oMan.getConnectionProperties());
oMan.createDataModel();
oMan.writeInfrastructureDocuments();
oDao.destroy();
oDao = new DAO();
oDao.init(oMan.getConnectionProperties());
JDCConnection oCon = DAO.getConnection("ModelManager");
createCache(oCon);
oCon.close("ModelManager");
AtrilSession oSes = DAO.getAdminSession("ModelManager");
createDeposits(oSes);
oSes.commit();
createCaptureTypes(oSes);
oSes.commit();
oMan.writeServiceFlavors(oSes);
oSes.commit();
oMan.writeProducts(oSes);
oSes.commit();
oMan.writeVatPercents(oSes);
oSes.commit();
oMan.writeAccountingAccounts(oSes);
oSes.commit();
oMan.writeCountries(oSes);
oSes.commit();
oMan.writeStates(oSes, "es");
oSes.commit();
/*
oMan.writeCities(oSes, "es");
oSes.commit();
*/
oSes.disconnect();
oSes.close();
oDao.destroy();
System.out.println("Done!");
}