public class ForeignGenerator extends Object implements IdentifierGenerator, Configurable
ENTITY_NAME, JPA_ENTITY_NAME
Constructor and Description |
---|
ForeignGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Type type,
Properties params,
Dialect d)
Configure this instance, given the value of parameters
specified by the user as <param> elements.
|
Serializable |
generate(SessionImplementor sessionImplementor,
Object object)
Generate a new identifier.
|
String |
getEntityName()
Getter for property 'entityName'.
|
String |
getPropertyName()
Getter for property 'propertyName'.
|
String |
getRole()
Getter for property 'role'.
|
public String getEntityName()
public String getPropertyName()
public String getRole()
property name
qualified by the
entity name
.public void configure(Type type, Properties params, Dialect d)
configure
in interface Configurable
params
- param values, keyed by parameter namepublic Serializable generate(SessionImplementor sessionImplementor, Object object)
generate
in interface IdentifierGenerator
object
- the entity or toplevel collection for which the id is being generatedCopyright © 2018 JBoss by Red Hat. All rights reserved.