类 AttributeFactory

    • 构造器详细资料

      • AttributeFactory

        public AttributeFactory​(org.hibernate.metamodel.internal.MetadataContext context)
    • 方法详细资料

      • buildAttribute

        public <X,​Y> PersistentAttributeDescriptor<X,​Y> buildAttribute​(ManagedTypeDescriptor<X> ownerType,
                                                                                   Property property)
        Build a normal attribute.
        类型参数:
        X - The type of the owner
        Y - The attribute type
        参数:
        ownerType - The descriptor of the attribute owner (aka declarer).
        property - The Hibernate property descriptor for the attribute
        返回:
        The built attribute descriptor or null if the attribute is not part of the JPA 2 model (eg backrefs)
      • buildIdAttribute

        public <X,​Y> SingularPersistentAttribute<X,​Y> buildIdAttribute​(IdentifiableTypeDescriptor<X> ownerType,
                                                                                   Property property)
        Build the identifier attribute descriptor
        类型参数:
        X - The type of the owner
        Y - The attribute type
        参数:
        ownerType - The descriptor of the attribute owner (aka declarer).
        property - The Hibernate property descriptor for the identifier attribute
        返回:
        The built attribute descriptor
      • buildVersionAttribute

        public <X,​Y> SingularAttributeImpl<X,​Y> buildVersionAttribute​(IdentifiableTypeDescriptor<X> ownerType,
                                                                                  Property property)
        Build the version attribute descriptor
        类型参数:
        X - The type of the owner
        Y - The attribute type
        参数:
        ownerType - The descriptor of the attribute owner (aka declarer).
        property - The Hibernate property descriptor for the version attribute
        返回:
        The built attribute descriptor
      • determineSingularAssociationAttributeType

        public static javax.persistence.metamodel.Attribute.PersistentAttributeType determineSingularAssociationAttributeType​(Member member)
      • accountForPrimitiveTypes

        protected <Y> Class<Y> accountForPrimitiveTypes​(Class<Y> declaredType)
      • determineCollectionType

        public static javax.persistence.metamodel.PluralAttribute.CollectionType determineCollectionType​(Class javaType)
      • isManyToMany

        public static boolean isManyToMany​(Member member)