org.hibernate.loader.MultipleBagFetchException 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 .
*/
package org.hibernate.loader;
import java.util.List;
import org.hibernate.HibernateException;
/**
* Exception used to indicate that a query is attempting to simultaneously fetch multiple
* {@linkplain org.hibernate.type.BagType bags}
*
* @author Steve Ebersole
*/
public class MultipleBagFetchException extends HibernateException {
private final List bagRoles;
public MultipleBagFetchException(List bagRoles) {
super( "cannot simultaneously fetch multiple bags: " + bagRoles );
this.bagRoles = bagRoles;
}
/**
* Retrieves the collection-roles for the bags encountered.
*
* @return The bag collection roles.
*/
public List getBagRoles() {
return bagRoles;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy