public class

Assigned

extends Object
implements Configurable IdentifierGenerator
java.lang.Object
   ↳ org.hibernate.id.Assigned

Class Overview

assigned

An IdentifierGenerator that returns the current identifier assigned to an instance.

Summary

[Expand]
Inherited Constants
From interface org.hibernate.id.IdentifierGenerator
Public Constructors
Assigned()
Public Methods
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 session, Object obj)
Generate a new identifier.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.id.Configurable
From interface org.hibernate.id.IdentifierGenerator

Public Constructors

public Assigned ()

Public Methods

public void configure (Type type, Properties params, Dialect d)

Configure this instance, given the value of parameters specified by the user as <param> elements. This method is called just once, following instantiation.

Parameters
params param values, keyed by parameter name

public Serializable generate (SessionImplementor session, Object obj)

Generate a new identifier.

Parameters
obj the entity or toplevel collection for which the id is being generated
Returns
  • a new identifier