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

org.hibernate.id.Configurable Maven / Gradle / Ivy

There is a newer version: 5.6.15.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 .
 */
package org.hibernate.id;

import java.util.Properties;

import org.hibernate.MappingException;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.type.Type;

/**
 * An {@link IdentifierGenerator} that supports "configuration".
 *
 * @deprecated All methods are already defined in {@link IdentifierGenerator}.
 * Just implement {@link IdentifierGenerator}.
 * @see IdentifierGenerator
 *
 * @author Gavin King
 * @author Steve Ebersole
 */
@Deprecated
public interface Configurable {
	/**
	 * Configure this instance, given the value of parameters
	 * specified by the user as <param> elements.
	 * This method is called just once, following instantiation.
	 *
	 * @param type The id property type descriptor
	 * @param params param values, keyed by parameter name
	 * @param serviceRegistry Access to service that may be needed.
	 */
	void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy