Class PropertyMetadata


  • public class PropertyMetadata
    extends Object
    Information about an entity property, with specificities on a database connection (such as sql identifier).
    Author:
    Guillaume Le Cousin
    • Method Detail

      • getName

        @NonNull
        public String getName()
      • getType

        @NonNull
        public Class<?> getType()
      • getGenericType

        @NonNull
        public Type getGenericType()
      • getRequiredSpringProperty

        @NonNull
        public org.springframework.data.relational.core.mapping.RelationalPersistentProperty getRequiredSpringProperty()
      • isPersistent

        public boolean isPersistent()
      • isWritable

        public boolean isWritable()
      • isForeignKey

        public boolean isForeignKey()
      • getForeignKeyAnnotation

        public ForeignKey getForeignKeyAnnotation()
      • getForeignKeyEntityMetadata

        public EntityMetadata getForeignKeyEntityMetadata()
      • isForeignTable

        public boolean isForeignTable()
      • getForeignTableAnnotation

        public ForeignTable getForeignTableAnnotation()
      • isCollection

        public boolean isCollection()
      • isGeneratedValue

        public boolean isGeneratedValue()
      • getGeneratedValueAnnotation

        @Nullable
        public GeneratedValue getGeneratedValueAnnotation()
      • getRequiredGeneratedValueAnnotation

        @NonNull
        public GeneratedValue getRequiredGeneratedValueAnnotation()
      • isId

        public boolean isId()
      • isVersion

        public boolean isVersion()
      • isCreatedDate

        public boolean isCreatedDate()
      • isLastModifiedDate

        public boolean isLastModifiedDate()
      • getColumnName

        public org.springframework.data.relational.core.sql.SqlIdentifier getColumnName()
      • isUpdatable

        public boolean isUpdatable()
      • isNullable

        public boolean isNullable()
        Check if a property may be null.
        It cannot be null if:
        • the type is a primitive type
        • this is the id property
        • this is a foreign key, and it is specified as non optional
        • this is not a foreign key, and the column definition specifies the column as nullable
        Parameters:
        property -
        Returns: