public class

PropertyFactory

extends Object
java.lang.Object
   ↳ org.hibernate.tuple.PropertyFactory

Class Overview

Responsible for generation of runtime metamodel Property representations. Makes distinction between identifier, version, and other (standard) properties.

Summary

Public Constructors
PropertyFactory()
Public Methods
static IdentifierProperty buildIdentifierProperty(PersistentClass mappedEntity, IdentifierGenerator generator)
Generates an IdentifierProperty representation of the for a given entity mapping.
static StandardProperty buildStandardProperty(Property property, boolean lazyAvailable)
Generate a "standard" (i.e., non-identifier and non-version) based on the given mapped property.
static VersionProperty buildVersionProperty(Property property, boolean lazyAvailable)
Generates a VersionProperty representation for an entity mapping given its version mapping Property.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PropertyFactory ()

Public Methods

public static IdentifierProperty buildIdentifierProperty (PersistentClass mappedEntity, IdentifierGenerator generator)

Generates an IdentifierProperty representation of the for a given entity mapping.

Parameters
mappedEntity The mapping definition of the entity.
generator The identifier value generator to use for this identifier.
Returns
  • The appropriate IdentifierProperty definition.

public static StandardProperty buildStandardProperty (Property property, boolean lazyAvailable)

Generate a "standard" (i.e., non-identifier and non-version) based on the given mapped property.

Parameters
property The mapped property.
lazyAvailable Is property lazy loading currently available.
Returns
  • The appropriate StandardProperty definition.

public static VersionProperty buildVersionProperty (Property property, boolean lazyAvailable)

Generates a VersionProperty representation for an entity mapping given its version mapping Property.

Parameters
property The version mapping Property.
lazyAvailable Is property lazy loading currently available.
Returns
  • The appropriate VersionProperty definition.