*/
public static void main(String[] args) {
final String[] defaultConfigPaths = {AppConstants.APP_DAO_CONFIG,AppConstants.APP_BOTransaction_CONFIG,AppConstants.APP_CONFIG};
ApplicationContext appContext = new ClassPathXmlApplicationContext(defaultConfigPaths);
ObjectDAO objectDAO = (ObjectDAO)appContext.getBean("objectDAO");
Session session = objectDAO.getHibSession();
Transaction tx = session.beginTransaction();
AccountDO accountsDO = (AccountDO)session.load(AccountDO.class, 2);
tx.commit();
session.close();
//accountsDO.setAccountId(2);
session = objectDAO.getHibSession();
tx = session.beginTransaction();
accountsDO.setName("one4");
session.update(accountsDO);
tx.commit();
}