Package org.hibernate.dialect
Interface Dialect.SizeStrategy
- All Known Implementing Classes:
Dialect.SizeStrategyImpl
- Enclosing class:
- Dialect
public static interfaceDialect.SizeStrategyPluggable strategy for determining theSizeto use for columns of a given SQL type.Allows dialects, integrators, and users a chance to apply column size defaults and limits in certain situations based on the mapped SQL and Java types. For example, when mapping a
UUIDto aVARCHARcolumn, we know the defaultSizeshould haveSize.length == 36.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SizeresolveSize(JdbcType jdbcType,JavaType<?> javaType,Integer precision,Integer scale,Long length)