Package org.hibernate.dialect
Interface Dialect.SizeStrategy
-
- All Known Implementing Classes:
Dialect.SizeStrategyImpl
- Enclosing class:
- Dialect
public static interface Dialect.SizeStrategy
Pluggable strategy for determining theSize
to 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
UUID
to aVARCHAR
column, we know the defaultSize
should haveSize.length == 36
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Size
resolveSize(JdbcType jdbcType, JavaType<?> javaType, Integer precision, Integer scale, Long length)
-