Code example for Session

Methods: clearflush

0
    } 
 
    private void commitBatch(int numProcessed) throws SecurityException,
            IllegalStateException, RollbackException, HeuristicMixedException,
            HeuristicRollbackException, SystemException, NotSupportedException {
        session.flush();
        session.clear();
        Transaction.instance().commit();
        Transaction.instance().begin();
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE