Code example for Session

Methods: flush

0
	} 
	protected void flush() { 
		flush(true); 
	} 
	protected void flush(boolean commit) {
		session.flush();
		if (commit)
			tx.commit();
	} 
	protected void flushOnly() { 
		session.flush();
	} 
	protected void close() { 
		session.clear();
		session.close();
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java