Best code examples for Hibernate ORM QueryException class (org.hibernate.QueryException)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM QueryException class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM QueryException examples from Open Source projects
This code example shows how to use the following methods: getMessage
 */ 
@SuppressWarnings("serial") 
public class HibernateQueryException extends InvalidDataAccessResourceUsageException {
 
	public HibernateQueryException(QueryException ex) {
		super(ex.getMessage(), ex);
	} 
 
	/** 
	 * Return the HQL query string that was invalid. 
	 */ 
	public String getQueryString() {
		return ((QueryException) getCause()).getQueryString();
	} 
 
} 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getMessage
 */ 
@SuppressWarnings("serial") 
public class HibernateQueryException extends InvalidDataAccessResourceUsageException {
 
	public HibernateQueryException(QueryException ex) {
		super(ex.getMessage(), ex);
	} 
 
	/** 
	 * Return the HQL query string that was invalid. 
	 */ 
	public String getQueryString() {
		return ((QueryException) getCause()).getQueryString();
	} 
 
} 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getMessage
import org.hibernate.PessimisticLockException;
import org.hibernate.PropertyValueException;
import org.hibernate.QueryException;
import org.hibernate.QueryTimeoutException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.StaleObjectStateException;
import org.hibernate.StaleStateException;
import org.hibernate.TransientObjectException;
import org.hibernate.UnresolvableObjectException;
import org.hibernate.WrongClassException;
import org.hibernate.dialect.lock.OptimisticEntityLockException;
import org.hibernate.dialect.lock.PessimisticEntityLockException;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.exception.ConstraintViolationException;
import org.hibernate.exception.DataException;
import org.hibernate.exception.JDBCConnectionException;
import org.hibernate.exception.LockAcquisitionException;
import org.hibernate.exception.SQLGrammarException;
import org.hibernate.service.spi.Wrapped;
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getMessage
import org.hibernate.Criteria; 
import org.hibernate.FlushMode; 
import org.hibernate.HibernateException; 
import org.hibernate.Interceptor; 
import org.hibernate.JDBCException; 
import org.hibernate.NonUniqueObjectException; 
import org.hibernate.NonUniqueResultException; 
import org.hibernate.ObjectDeletedException; 
import org.hibernate.OptimisticLockException; 
import org.hibernate.PersistentObjectException; 
import org.hibernate.PessimisticLockException; 
import org.hibernate.PropertyValueException; 
import org.hibernate.Query; 
import org.hibernate.QueryException; 
import org.hibernate.QueryTimeoutException; 
import org.hibernate.Session; 
import org.hibernate.SessionFactory; 
import org.hibernate.StaleObjectStateException; 
import org.hibernate.StaleStateException; 
import org.hibernate.TransientObjectException; 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
			} 
			else if ( ")".equals( token ) ) {
				currentCollectionProp = null;
				return; 
			} 
			else { 
				token = StringHelper.qualify( token, currentCollectionProp );
			} 
		} 
		else { 
			String prop = CollectionProperties.getNormalizedPropertyName( token.toLowerCase() );
			if ( prop != null ) {
				currentCollectionProp = prop;
				return; 
			} 
		} 
 
 
		//handle <=, >=, !=, is not, not between, not in 
		if ( lastToken == null ) {
Full Snippet Info
5
CodeRank