Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15623 (
https://hibernate.atlassian.net/browse/HHH-15623?atlOrigin=eyJpIjoiZjRmMD...
)
Re: JPA Hibernate float value not taking from Column precision for DDL Generation (
https://hibernate.atlassian.net/browse/HHH-15623?atlOrigin=eyJpIjoiZjRmMD...
)
This seems to be a big change in the requirements it seems
How is that a big change and what requirements are you talking about?
The Javadoc of the @Column annotation clearly says that precision is only supported for
decimal/numeric types and that the unit is decimal digits. Providing a precision for
float/double types is “unspecified“. So far, Hibernate 5 just ignored the value you have
been providing.
Hibernate 6 now interprets this as decimal digits, just like for decimal/numeric types. It
translates the value you provide to the binary digit precision by calculating
decimal_precision*ln(10)/ln(2).
(
https://hibernate.atlassian.net/browse/HHH-15623#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15623#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#100209- sha1:6031644 )