Code example for Session

Methods: flush

0
 
	@Override 
	public void flush() { 
		try { 
			SessionFactoryUtils.logger.debug("Flushing Hibernate Session on explicit request"); 
			this.session.flush();
		} 
		catch (HibernateException ex) {
			throw SessionFactoryUtils.convertHibernateAccessException(ex);
		} 
	} 
 
 
	@Override 
	public boolean equals(Object obj) { 
		return (obj instanceof SpringFlushSynchronization &&
				this.session == ((SpringFlushSynchronization) obj).session);
	} 
 
	@Override