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

org.hibernate.internal.util.xml.UnsupportedOrmXsdVersionException Maven / Gradle / Ivy

The 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 .
 */
package org.hibernate.internal.util.xml;

import org.hibernate.HibernateException;

/**
 * @author Steve Ebersole
 *
 * @deprecated Migrating to boot package; all usages will eventually be replaced by
 * {@link org.hibernate.boot.UnsupportedOrmXsdVersionException}
 */
@Deprecated
public class UnsupportedOrmXsdVersionException extends HibernateException {
	public UnsupportedOrmXsdVersionException(String requestedVersion, Origin origin) {
		super(
				String.format(
						"Encountered unsupported orm.xml xsd version [%s] in mapping document [type=%s, name=%s]",
						requestedVersion,
						origin.getType(),
						origin.getName()
				)
		);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy