Nils Israel (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) *commented* on HHH-16360 (
https://hibernate.atlassian.net/browse/HHH-16360?atlOrigin=eyJpIjoiYTZlMm...
)
Re: On Postgresql with hbm2ddl.auto=update, timestamp columns are updated even when
correct (
https://hibernate.atlassian.net/browse/HHH-16360?atlOrigin=eyJpIjoiYTZlMm...
)
This works for Date but not for Double
static boolean hasMatchingLength(Column column, ColumnInformation columnInformation,
Metadata metadata, Dialect dialect) {
final int actualSize = columnInformation.getColumnSize(); // 17
final int actualDecimalDigits = columnInformation.getDecimalDigits(); // 17
if ( actualSize == 0 && actualDecimalDigits == 0 ) {
return true;
}
else {
final Size size = column.getColumnSize( dialect, metadata );
final Long requiredLength = size.getLength(); // null
final Integer requiredPrecision = size.getPrecision(); // 53
return requiredLength != null && requiredLength == actualSize
|| requiredPrecision != null && requiredPrecision == actualDecimalDigits //
actualDecimalDigits = 17
|| requiredPrecision != null && requiredPrecision == actualSize // actualSize
= 17, requiredPrecision = 53
|| requiredPrecision == null && requiredLength == null;
}
}
(
https://hibernate.atlassian.net/browse/HHH-16360#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16360#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#100225- sha1:2b972a1 )