コード例 #1
0
 private void startOperation() {
   session = PersistenceUtility.openSession();
   transaction = session.beginTransaction();
 }
コード例 #2
0
 public void finishOperation() {
   PersistenceUtility.close(session);
 }
コード例 #3
0
 private void handleException(HibernateException e) throws DataAccessLayerException {
   e.printStackTrace();
   PersistenceUtility.rollback(transaction);
   throw new DataAccessLayerException(e);
 }
コード例 #4
0
 public EntityManager() {
   PersistenceUtility.buildIfNeeded();
 }