Modifier and Type | Class and Description |
---|---|
static class |
PropertyFactory.NonIdentifierAttributeNature |
Modifier and Type | Method and Description |
---|---|
static NonIdentifierAttribute |
buildEntityBasedAttribute(EntityPersister persister,
SessionFactoryImplementor sessionFactory,
int attributeNumber,
Property property,
boolean lazyAvailable)
Generate a non-identifier (and non-version) attribute based on the given mapped property from the given entity
|
static IdentifierProperty |
buildIdentifierAttribute(PersistentClass mappedEntity,
IdentifierGenerator generator)
Generates the attribute representation of the identifier for a given entity mapping.
|
static IdentifierProperty |
buildIdentifierProperty(EntityBinding mappedEntity,
IdentifierGenerator generator)
Generates an IdentifierProperty representation of the for a given entity mapping.
|
static StandardProperty |
buildStandardProperty(AttributeBinding property,
boolean lazyAvailable)
Generate a "standard" (i.e., non-identifier and non-version) based on the given
mapped property.
|
static StandardProperty |
buildStandardProperty(Property property,
boolean lazyAvailable)
Deprecated.
|
static VersionProperty |
buildVersionProperty(EntityPersister persister,
BasicAttributeBinding property,
boolean lazyAvailable)
Generates a VersionProperty representation for an entity mapping given its
version mapping Property.
|
static VersionProperty |
buildVersionProperty(EntityPersister persister,
SessionFactoryImplementor sessionFactory,
int attributeNumber,
Property property,
boolean lazyAvailable)
Generates a VersionProperty representation for an entity mapping given its
version mapping Property.
|
public static IdentifierProperty buildIdentifierAttribute(PersistentClass mappedEntity, IdentifierGenerator generator)
mappedEntity
- The mapping definition of the entity.generator
- The identifier value generator to use for this identifier.public static IdentifierProperty buildIdentifierProperty(EntityBinding mappedEntity, IdentifierGenerator generator)
mappedEntity
- The mapping definition of the entity.generator
- The identifier value generator to use for this identifier.public static VersionProperty buildVersionProperty(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property property, boolean lazyAvailable)
property
- The version mapping Property.lazyAvailable
- Is property lazy loading currently available.public static VersionProperty buildVersionProperty(EntityPersister persister, BasicAttributeBinding property, boolean lazyAvailable)
property
- The version mapping Property.lazyAvailable
- Is property lazy loading currently available.public static NonIdentifierAttribute buildEntityBasedAttribute(EntityPersister persister, SessionFactoryImplementor sessionFactory, int attributeNumber, Property property, boolean lazyAvailable)
property
- The mapped property.lazyAvailable
- Is property lazy loading currently available.@Deprecated public static StandardProperty buildStandardProperty(Property property, boolean lazyAvailable)
public static StandardProperty buildStandardProperty(AttributeBinding property, boolean lazyAvailable)
property
- The mapped property.lazyAvailable
- Is property lazy loading currently available.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.