Code examples for HibernateException

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
65:	throw new HibernateException(ex.getMessage()); 
Full Snippet Info
10
CodeRank
41:	super(cause != null ? cause.getMessage() : null, cause); 
Full Snippet Info
8
CodeRank
41:	import org.hibernate.dialect.lock.OptimisticEntityLockException; 
-
142:	return new DataAccessResourceFailureException(ex.getMessage(), ex); 
-
146:	return new InvalidDataAccessResourceUsageException(ex.getMessage() + "; SQL [" + jdbcEx.getSQL() + "]", ex); 
-
150:	return new org.springframework.dao.QueryTimeoutException(ex.getMessage() + "; SQL [" + jdbcEx.getSQL() + "]", ex); 
-
154:	return new CannotAcquireLockException(ex.getMessage() + "; SQL [" + jdbcEx.getSQL() + "]", ex); 
-
158:	return new PessimisticLockingFailureException(ex.getMessage() + "; SQL [" + jdbcEx.getSQL() + "]", ex); 
-
162:	return new DataIntegrityViolationException(ex.getMessage()  + "; SQL [" + jdbcEx.getSQL() + 
-
167:	return new DataIntegrityViolationException(ex.getMessage() + "; SQL [" + jdbcEx.getSQL() + "]", ex); 
-
178:	return new IncorrectResultSizeDataAccessException(ex.getMessage(), 1, ex); 
-
181:	return new DuplicateKeyException(ex.getMessage(), ex); 
-
184:	return new DataIntegrityViolationException(ex.getMessage(), ex); 
-
187:	return new InvalidDataAccessApiUsageException(ex.getMessage(), ex); 
-
190:	return new InvalidDataAccessApiUsageException(ex.getMessage(), ex); 
-
193:	return new InvalidDataAccessApiUsageException(ex.getMessage(), ex); 
-
211:	if (ex.getCause() instanceof LockAcquisitionException) { 
212:	return new CannotAcquireLockException(ex.getMessage(), ex.getCause()); 
-
214:	return new PessimisticLockingFailureException(ex.getMessage(), ex); 
Full Snippet Info
8
CodeRank
37:	throw new HibernateException("Persistent storage of " + this.getClass().getName() + " corrupted, database contained string [" + s + "] which should be prefixed by: " + NOT_NULL_PREFIX); 
Full Snippet Info
8
CodeRank
32:	super(s); 
Full Snippet Info
8
CodeRank
25:	throw new HibernateException("Could not instantiate result class: " + instantiatedClass.getName()); 
Full Snippet Info
8
CodeRank
116:	throw new HibernateException( 
Full Snippet Info
8
CodeRank
214:	throw new HibernateException( 
Full Snippet Info
7
CodeRank
33:	super( "Unknown access type [" + accessTypeName + "]" ); 
Full Snippet Info
7
CodeRank
33:	super( message ); 
Full Snippet Info
7
CodeRank
38:	super( s ); 
Full Snippet Info
7
CodeRank
38:	super( s ); 
Full Snippet Info
7
CodeRank
35:	super( s ); 
Full Snippet Info
7
CodeRank
39:	super( s ); 
Full Snippet Info
7
CodeRank
39:	super( s ); 
Full Snippet Info
7
CodeRank
39:	throw new HibernateException( "unknown join type: "+joinType ); 
Full Snippet Info
7
CodeRank
34:	super(message); 
Full Snippet Info
7
CodeRank
50:	throw new HibernateException( "could not get handle to entity-name as interface : " + t ); 
Full Snippet Info
7
CodeRank
61:	throw new HibernateException( "could not get handle to entity-name as interface : " + t ); 
Full Snippet Info
7
CodeRank