Class DefaultSqlTypeMapping

java.lang.Object
org.springframework.data.jdbc.core.mapping.schema.DefaultSqlTypeMapping
All Implemented Interfaces:
SqlTypeMapping

public class DefaultSqlTypeMapping extends Object implements SqlTypeMapping
Class that provides a default implementation of mapping Java type to a Database type. To customize the mapping an instance of a class implementing SqlTypeMapping interface can be set on the Tables class
Since:
3.2
Author:
Kurt Niemi
  • Constructor Details

    • DefaultSqlTypeMapping

      public DefaultSqlTypeMapping()
  • Method Details

    • getColumnType

      public String getColumnType(RelationalPersistentProperty property)
      Description copied from interface: SqlTypeMapping
      Determines a column type for a persistent property.
      Specified by:
      getColumnType in interface SqlTypeMapping
      Parameters:
      property - the property for which the type should be determined.
      Returns:
      the SQL type to use, such as VARCHAR or NUMERIC. Can be null if the strategy cannot provide a column type.