Archimedes Trajano (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-17062 (
https://hibernate.atlassian.net/browse/HHH-17062?atlOrigin=eyJpIjoiY2U5MD...
)
Re: When hibernate.ddl-auto is update, it keeps on altering MEDIUMTEXT and Date and
DateTime defintions (
https://hibernate.atlassian.net/browse/HHH-17062?atlOrigin=eyJpIjoiY2U5MD...
)
My guess is in MySQLDialect
private final SizeStrategy sizeStrategy = new SizeStrategyImpl() {
@Override
public Size resolveSize(
JdbcType jdbcType,
JavaType<?> javaType,
Integer precision,
Integer scale,
Long length) {
switch ( jdbcType.getDdlTypeCode() ) {
case Types.BIT:
// MySQL allows BIT with a length up to 64 (less the default length 255)
if ( length != null ) {
return Size.length( Math.min( Math.max( length, 1 ), 64 ) );
}
case Types.DATE:
return Size.length(10);
case Types.TIMESTAMP:
// if DATETIME(0) ... not sure show to determine this
return Size.length(19);
// if DATETIME(1) ... not sure show to determine this
return Size.length(??); // likely a different size
...
}
return super.resolveSize( jdbcType, javaType, precision, scale, length );
}
};
(
https://hibernate.atlassian.net/browse/HHH-17062#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17062#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100234- sha1:90f5128 )