|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.id.ForeignGenerator
public class ForeignGenerator
foreign
An Identifier generator that uses the value of the id property of an
associated object
One mapping parameter is required: property.
| Field Summary |
|---|
| Fields inherited from interface org.hibernate.id.IdentifierGenerator |
|---|
ENTITY_NAME, JPA_ENTITY_NAME |
| Constructor Summary | |
|---|---|
ForeignGenerator()
|
|
| Method Summary | |
|---|---|
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'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForeignGenerator()
| Method Detail |
|---|
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 Configurableparams - param values, keyed by parameter name
public Serializable generate(SessionImplementor sessionImplementor,
Object object)
generate in interface IdentifierGeneratorobject - the entity or toplevel collection for which the id is being generated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||