|
||||||||||
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 |
Constructor Summary | |
---|---|
ForeignGenerator()
|
Method Summary | |
---|---|
void |
configure(Type type,
java.util.Properties params,
Dialect d)
Configure this instance, given the value of parameters specified by the user as <param> elements. |
java.io.Serializable |
generate(SessionImplementor sessionImplementor,
java.lang.Object object)
Generate a new identifier. |
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 java.io.Serializable generate(SessionImplementor sessionImplementor, java.lang.Object object) throws HibernateException
IdentifierGenerator
generate
in interface IdentifierGenerator
object
- the entity or toplevel collection for which the id is being generated
HibernateException
IdentifierGenerator.generate(org.hibernate.engine.SessionImplementor, java.lang.Object)
public void configure(Type type, java.util.Properties params, Dialect d) throws MappingException
Configurable
configure
in interface Configurable
params
- param values, keyed by parameter name
MappingException
Configurable.configure(org.hibernate.type.Type, java.util.Properties, org.hibernate.dialect.Dialect)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |