session.save(adminConfigHBM);
session.flush();
}
else {
try {
AdminConfigHBM adminConfigHBM = (AdminConfigHBM)session.load(AdminConfigHBM.class,
adminConfig.getPrimaryKey());
adminConfigHBM.setCompanyId(adminConfig.getCompanyId());
adminConfigHBM.setType(adminConfig.getType());
adminConfigHBM.setName(adminConfig.getName());
adminConfigHBM.setConfig(adminConfig.getConfig());