All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.query.NamedQueryValidationException Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
 */
package org.hibernate.query;

import org.hibernate.HibernateException;
import org.hibernate.QueryException;

import java.util.Map;

/**
 * Indicates that validation and translation of one or more named
 * queries failed at initialization time. This exception packages
 * every {@link org.hibernate.QueryException} that occurred for an
 * invalid HQL/JPQL query, together with any exceptions that indicate
 * problems with named native SQL queries.
 *
 * @author Gavin King
 */
public class NamedQueryValidationException extends QueryException {
	private final Map errors;

	public NamedQueryValidationException(String message, Map errors) {
		super( message );
		this.errors = errors;
	}

	/**
	 * A map from query name to the error that occurred while
	 * interpreting or translating the named query.
	 */
	public Map getErrors() {
		return errors;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy