Package org.hibernate.tuple

Class PropertyFactory


  • @Deprecated(forRemoval=true)public final classPropertyFactoryextendsObject
    Deprecated, for removal: This API element is subject to removal in a future version.
    No direct replacement
    • Method Detail

      • buildIdentifierAttribute

        public static IdentifierProperty buildIdentifierAttribute​(PersistentClass mappedEntity,Generator generator)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Generates the attribute representation of the identifier 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.
      • buildVersionProperty

        public static VersionProperty buildVersionProperty​(EntityPersister persister,SessionFactoryImplementor sessionFactory,                                                   int attributeNumber,Property property,                                                   boolean lazyAvailable)
        Deprecated, for removal: This API element is subject to removal in a future version.
        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.
      • buildEntityBasedAttribute

        public static NonIdentifierAttribute buildEntityBasedAttribute​(EntityPersister persister,SessionFactoryImplementor sessionFactory,                                                               int attributeNumber,Property property,                                                               boolean lazyAvailable,RuntimeModelCreationContext creationContext)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Generate a non-identifier (and non-version) attribute based on the given mapped property from the given entity
        Parameters:
        property - The mapped property.
        lazyAvailable - Is property lazy loading currently available.
        Returns:
        The appropriate NonIdentifierProperty definition.