Hibernate ORM TransactionContext - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM TransactionContext class.

This code example shows how to use the following methods: getJdbcConnectionAccess
 
	private int flushDepth = 0; 
 
	@Override 
	public void flushBeginning() { 
		if ( flushDepth == 0 ) { 
			logicalConnection.disableReleases(); 
		} 
		flushDepth++; 
	} 
 
	@Override 
	public void flushEnding() { 
		flushDepth--; 
		if ( flushDepth < 0 ) { 
			throw new HibernateException( "Mismatched flush handling" ); 
		} 
		if ( flushDepth == 0 ) { 
			logicalConnection.enableReleases(); 
		} 
Full Snippet Info
4
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE