Bert Roos (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZmY1ZGUzYTZi...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16422?atlOrigin=eyJpIjoiZmY1ZG...
) HHH-16422 (
https://hibernate.atlassian.net/browse/HHH-16422?atlOrigin=eyJpIjoiZmY1ZG...
) Backward compatibility issue in 6.2: enum ordinal now mapped to tinyint instead of int (
https://hibernate.atlassian.net/browse/HHH-16422?atlOrigin=eyJpIjoiZmY1ZG...
)
Issue Type: Bug Affects Versions: 6.2.0 Assignee: Unassigned Created: 03/Apr/2023 04:37 AM
Environment: Spring Boot 3.0.5 with Hibernate 6.2.0 and MariaDB Priority: Major Reporter:
Bert Roos (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Upon upgrading from 6.1.7 to 6.2.0, I get this error message during schema validation:
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation:
wrong column type encountered in column [receiving_status] in table [buddies_anonymized] ;
found int (Types#INTEGER) ( #INTEGER) ) , but expecting tinyint (Types#TINYINT) (
#TINYINT) )
The full class BuddyAnonymized can be found here (
https://github.com/yonadev/yona-server/blob/master/core/src/main/java/nu/...
). The attribute receivingStatus is declared as follows (no annotations applied):
private Status receivingStatus = Status.NOT_REQUESTED;
The type Status is an enum, defined as follows:
public enum Status
{
NOT_REQUESTED, REQUESTED, ACCEPTED, REJECTED
}
(
https://hibernate.atlassian.net/browse/HHH-16422#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16422#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#100221- sha1:d541bce )