org.hibernate.id.Configurable 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.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".
*
* @author Gavin King
* @author Steve Ebersole
*/
public interface Configurable {
/**
* Configure this instance, given the value of parameters
* specified by the user as {@code <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