Max (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) *commented* on HHH-16578 (
https://hibernate.atlassian.net/browse/HHH-16578?atlOrigin=eyJpIjoiOWI5Zj...
)
Re: Incorrect validation error for tinyint, but and datetime (
https://hibernate.atlassian.net/browse/HHH-16578?atlOrigin=eyJpIjoiOWI5Zj...
)
I’m not sure I’m following, sorry.
Java int: -2,147,483,648 to 2,147,483,647
MySQL tinyint (no exception thrown): -128 to 128
MySQL tinyint unsigned (exception thrown): 0 to 255
The problem is that @Column(name = "level", columnDefinition =
"tinyint") ` is ok, but for some reason @Column(name = "level",
columnDefinition = "tinyint unsigned") ` is not, although it’s closer to the
actual database table definition.
Or do you mean negative values here somehow make a difference? What about positive values
over 128 in case of tinyint?
(
https://hibernate.atlassian.net/browse/HHH-16578#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16578#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:84d3b45 )