Top Fields Constructors Methods
org.hibernate.tuple

public Class IdentifierProperty

extends AbstractAttribute
implements IdentifierAttribute
Class Inheritance
All Implemented Interfaces
org.hibernate.tuple.IdentifierAttribute, org.hibernate.tuple.Attribute
Annotations
@Deprecated
forRemoval:true
Imports
org.hibernate.generator.Generator, org.hibernate.id.IdentifierGenerator, org.hibernate.type.Type

Deprecated

for removal.

No direct replacement; see org.hibernate.metamodel.mapping.EntityIdentifierMapping

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean
private final boolean
private final Generator
private final boolean

Constructor Summary

AccessConstructor and Description
public
IdentifierProperty(String
The name of the property representing the identifier within its owning entity.
name
,
Type
The Hibernate Type for the identifier property.
type
,
boolean
Is this an embedded identifier. property, represents new (i.e., un-saved) instances of the owning entity.
embedded
,
Generator
The generator to use for id value generation.
identifierGenerator
)

Construct a non-virtual identifier property.

public
IdentifierProperty(Type
The Hibernate Type for the identifier property.
type
,
boolean
Is this an embedded identifier. property, represents new (i.e., un-saved) instances of the owning entity.
embedded
,
boolean hasIdentifierMapper, Generator
The generator to use for id value generation.
identifierGenerator
)

Construct a virtual IdentifierProperty.

Method Summary

Modifier and TypeMethod and Description
public Generator
public IdentifierGenerator
public boolean
public boolean
public boolean
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.hibernate.tuple.AbstractAttribute:
getNamegetType

Field Detail

embeddedback to summary
private final boolean embedded
hasIdentifierMapperback to summary
private final boolean hasIdentifierMapper
identifierAssignedByInsertback to summary
private final boolean identifierAssignedByInsert
identifierGeneratorback to summary
private final Generator identifierGenerator
virtualback to summary
private final boolean virtual

Constructor Detail

IdentifierPropertyback to summary
public IdentifierProperty(String name, Type type, boolean embedded, Generator identifierGenerator)

Construct a non-virtual identifier property.

Parameters
name:String

The name of the property representing the identifier within its owning entity.

type:Type

The Hibernate Type for the identifier property.

embedded:boolean

Is this an embedded identifier. property, represents new (i.e., un-saved) instances of the owning entity.

identifierGenerator:Generator

The generator to use for id value generation.

IdentifierPropertyback to summary
public IdentifierProperty(Type type, boolean embedded, boolean hasIdentifierMapper, Generator identifierGenerator)

Construct a virtual IdentifierProperty.

Parameters
type:Type

The Hibernate Type for the identifier property.

embedded:boolean

Is this an embedded identifier. property, represents new (i.e., un-saved) instances of the owning entity.

identifierGenerator:Generator

The generator to use for id value generation.

Method Detail

getGeneratorback to summary
public Generator getGenerator()

Implements org.hibernate.tuple.IdentifierAttribute.getGenerator.

Annotations
@Override
getIdentifierGeneratorback to summary
public IdentifierGenerator getIdentifierGenerator()

Implements org.hibernate.tuple.IdentifierAttribute.getIdentifierGenerator.

Annotations
@Override
hasIdentifierMapperback to summary
public boolean hasIdentifierMapper()

Implements org.hibernate.tuple.IdentifierAttribute.hasIdentifierMapper.

Annotations
@Override
isEmbeddedback to summary
public boolean isEmbedded()

Implements org.hibernate.tuple.IdentifierAttribute.isEmbedded.

Annotations
@Override
isIdentifierAssignedByInsertback to summary
public boolean isIdentifierAssignedByInsert()

Implements org.hibernate.tuple.IdentifierAttribute.isIdentifierAssignedByInsert.

Annotations
@Override
isVirtualback to summary
public boolean isVirtual()

Implements org.hibernate.tuple.IdentifierAttribute.isVirtual.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override