org.hibernate.tuple
Class IdentifierProperty
- Serializable
public class IdentifierProperty
Represents a defined entity identifier property within the Hibernate
runtime-metamodel.
IdentifierProperty
public IdentifierProperty(String name,
String node,
Type type,
boolean embedded,
IdentifierValue unsavedValue,
IdentifierGenerator identifierGenerator)
Construct a non-virtual identifier property.
name
- The name of the property representing the identifier within
its owning entity.node
- The node name to use for XML-based representation of this
property.type
- The Hibernate Type for the identifier property.embedded
- Is this an embedded identifier.unsavedValue
- The value which, if found as the value on the identifier
property, represents new (i.e., un-saved) instances of the owning entity.identifierGenerator
- The generator to use for id value generation.
IdentifierProperty
public IdentifierProperty(Type type,
boolean embedded,
boolean hasIdentifierMapper,
IdentifierValue unsavedValue,
IdentifierGenerator identifierGenerator)
Construct a virtual IdentifierProperty.
type
- The Hibernate Type for the identifier property.embedded
- Is this an embedded identifier.unsavedValue
- The value which, if found as the value on the identifier
property, represents new (i.e., un-saved) instances of the owning entity.identifierGenerator
- The generator to use for id value generation.
hasIdentifierMapper
public boolean hasIdentifierMapper()
isEmbedded
public boolean isEmbedded()
isIdentifierAssignedByInsert
public boolean isIdentifierAssignedByInsert()
isVirtual
public boolean isVirtual()