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

org.hibernate.internal.log.UnsupportedLogger Maven / Gradle / Ivy

/*
 * 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.log;

import org.hibernate.cfg.AvailableSettings;

import org.jboss.logging.annotations.LogMessage;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageLogger;
import org.jboss.logging.annotations.ValidIdRange;

import static org.jboss.logging.Logger.Level.WARN;

/**
 * Class to consolidate logging about usage of features which should
 * never be used.
 * Such features might have been introduced for practical reasons so
 * that people who really know what they want can use them, with the
 * understanding that they should find a better alternative.
 *
 * @author Sanne Grinovero
 */
@MessageLogger( projectCode = "HHH" )
@ValidIdRange( min = 90002001, max = 90003000 )
public interface UnsupportedLogger {

	@LogMessage(level = WARN)
	@Message(value = "Global configuration option '" + AvailableSettings.ENFORCE_LEGACY_PROXY_CLASSNAMES + "' was enabled. " +
			"Generated proxies will use backwards compatible classnames. This option is unsupported and will be removed.",
			id = 90002001)
	void usingLegacyClassnamesForProxies();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy