Package org.hibernate.id
Class Assigned
java.lang.Object
org.hibernate.id.Assigned
- All Implemented Interfaces:
Configurable,IdentifierGenerator
assigned
An IdentifierGenerator that returns the current identifier assigned to an instance.
An IdentifierGenerator that returns the current identifier assigned to an instance.
-
Field Summary
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Type type, Properties params, Dialect d) Configure this instance, given the value of parameters specified by the user as <param> elements.generate(SessionImplementor session, Object obj) Generate a new identifier.
-
Constructor Details
-
Assigned
public Assigned()
-
-
Method Details
-
generate
Description copied from interface:IdentifierGeneratorGenerate a new identifier.- Specified by:
generatein interfaceIdentifierGenerator- Parameters:
session-obj- the entity or toplevel collection for which the id is being generated- Returns:
- a new identifier
- Throws:
HibernateException
-
configure
Description copied from interface:ConfigurableConfigure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.- Specified by:
configurein interfaceConfigurable- Parameters:
params- param values, keyed by parameter name- Throws:
MappingException
-