Class FieldInfo

java.lang.Object
net.ideahut.springboot.entity.FieldInfo

public class FieldInfo extends Object
  • Field Details

    • field

      protected final Field field
    • setter

      protected final Method setter
    • getter

      protected final Method getter
    • nullable

      protected Boolean nullable
  • Constructor Details

    • FieldInfo

      public FieldInfo(EntityInfo entityInfo, Field field, org.hibernate.mapping.Column column, boolean lazyObject, boolean lazyCollection, Class<?> collectionGenericType, boolean eagerObject, Boolean nullable, Integer length, Integer scale, Integer precision, boolean embedded)
  • Method Details

    • getEntityInfo

      public EntityInfo getEntityInfo()
    • getName

      public String getName()
    • getType

      public Class<?> getType()
    • getCollectionGenericType

      public Class<?> getCollectionGenericType()
    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
    • getAnnotationsByType

      public <T extends Annotation> T[] getAnnotationsByType(Class<T> annotationClass)
    • getConverter

      public Converter getConverter()
    • getHibernateType

      public org.hibernate.type.Type getHibernateType()
    • isEagerObject

      public boolean isEagerObject()
    • isLazyObject

      public boolean isLazyObject()
    • isLazyCollection

      public boolean isLazyCollection()
    • isEmbedded

      public boolean isEmbedded()
    • getFormat

      public String getFormat()
    • getNullable

      public Boolean getNullable()
    • getLength

      public Integer getLength()
    • getScale

      public Integer getScale()
    • getPrecision

      public Integer getPrecision()
    • getColumn

      public org.hibernate.mapping.Column getColumn()
    • getJoinColumns

      public JoinColumns getJoinColumns()
    • isLob

      public boolean isLob()
    • hasJoinColumns

      public boolean hasJoinColumns()
    • hasJoinRelations

      public boolean hasJoinRelations()
    • getAttributeOverrides

      public AttributeOverrides getAttributeOverrides()
    • hasAttributeOverrides

      public boolean hasAttributeOverrides()
    • setValue

      public void setValue(Object target, Object value) throws Exception
      Throws:
      Exception
    • getValue

      public Object getValue(Object target) throws Exception
      Throws:
      Exception
    • convert

      public Object convert(Object value)
    • getEnumType

      protected jakarta.persistence.EnumType getEnumType()
    • fieldValue

      protected void fieldValue(Object target, Object value) throws Exception
      Throws:
      Exception
    • fieldValue

      protected Object fieldValue(Object target) throws Exception
      Throws:
      Exception
    • getNativeDefinition

      protected net.ideahut.springboot.entity.NativeFieldDefinition getNativeDefinition()
    • createEntity

      protected <T> T createEntity() throws Exception
      Throws:
      Exception
    • prepareConverter

      protected void prepareConverter()
    • prepareAttributeOverrides

      protected void prepareAttributeOverrides(EntityInfo entInf)
    • prepareJoinColumns

      protected void prepareJoinColumns(EntityInfo entInf)
    • prepareDefinition

      protected void prepareDefinition()