public class DefaultIdentityMapping<T extends Property> extends DefaultPropertyMapping implements IdentityMapping
Default implementation of the IdentityMapping interface
| Constructor and description |
|---|
DefaultIdentityMapping(ClassMapping classMapping)Creates a lazy identity mapping that defers resolution of the mapped form and identifier names until they are actually needed. |
DefaultIdentityMapping(ClassMapping classMapping, T mappedForm, java.lang.String[] identifierNames, ValueGenerator generator) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ValueGenerator |
getGenerator() |
|
public java.lang.String[] |
getIdentifierName() |
|
public T |
getMappedForm() |
|
public java.lang.Class<?> |
getStoredAs() |
| Methods inherited from class | Name |
|---|---|
class DefaultPropertyMapping |
getClassMapping, getMappedForm |
Creates a lazy identity mapping that defers resolution of the mapped form and identifier names until they are actually needed. This is necessary because during entity construction, the identity property has not yet been initialized.
classMapping - the class mapping