public class ForeignGenerator extends java.lang.Object implements IdentifierGenerator, Configurable
ENTITY_NAME, JPA_ENTITY_NAME| Constructor and Description |
|---|
ForeignGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Type type,
java.util.Properties params,
ServiceRegistry serviceRegistry)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
java.io.Serializable |
generate(SharedSessionContractImplementor sessionImplementor,
java.lang.Object object)
Generate a new identifier.
|
java.lang.String |
getEntityName()
Getter for property 'entityName'.
|
java.lang.String |
getPropertyName()
Getter for property 'propertyName'.
|
java.lang.String |
getRole()
Getter for property 'role'.
|
public java.lang.String getEntityName()
public java.lang.String getPropertyName()
public java.lang.String getRole()
property name qualified by the
entity name.public void configure(Type type, java.util.Properties params, ServiceRegistry serviceRegistry) throws MappingException
Configurableconfigure in interface Configurabletype - The id property type descriptorparams - param values, keyed by parameter nameserviceRegistry - Access to service that may be needed.MappingExceptionpublic java.io.Serializable generate(SharedSessionContractImplementor sessionImplementor, java.lang.Object object)
IdentifierGeneratorgenerate in interface IdentifierGeneratorsessionImplementor - The session from which the request originatesobject - the entity or collection (idbag) for which the id is being generatedCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.