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();
    } 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java