membershipTypeDAO_ = new MembershipTypeDAOImpl(listenerService, datasource, new MembershipTypeMapper());
membershipDAO_ = new MembershipDAOImpl(listenerService, datasource, new MembershipMapper(), this);
userProfileDAO_ = new UserProfileDAOImpl(listenerService, datasource, new UserProfileMapper());
DBTableManager dbManager = datasource.getDBTableManager();
// try{
if (!dbManager.hasTable(UserImpl.class))
dbManager.createTable(UserImpl.class, false);
// int k = 3/0;
// } catch(Exception e) {
// e.printStackTrace();
// }
if (!dbManager.hasTable(GroupImpl.class))
dbManager.createTable(GroupImpl.class, false);
if (!dbManager.hasTable(MembershipTypeImpl.class))
dbManager.createTable(MembershipTypeImpl.class, false);
if (!dbManager.hasTable(UserProfileData.class))
dbManager.createTable(UserProfileData.class, false);
if (!dbManager.hasTable(MembershipImpl.class))
dbManager.createTable(MembershipImpl.class, false);
}