Hibernate 6 cannot persist Enum as Ordinal in VARCHAR column

Please create a test case(https://github.com/hibernate/hibernate-test-case-templates/blob/master/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java) that reproduces your issue, and also try showing how it works with ORM 5(https://github.com/hibernate/hibernate-test-case-templates/blob/master/orm/hibernate-orm-5/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java). You can attach the reproducers on a newly created JIRA issue(https://hibernate.atlassian.net).