org.hibernate.query.NamedQueryValidationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beangle-hibernate-core Show documentation
Show all versions of beangle-hibernate-core Show documentation
Hibernate Orm Core Shade,Support Scala Collection
/*
* 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