Thomas Herth (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNWJiNDQzMjY1...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16803?atlOrigin=eyJpIjoiNWJiND...
) HHH-16803 (
https://hibernate.atlassian.net/browse/HHH-16803?atlOrigin=eyJpIjoiNWJiND...
) Setting value of enum type to null using nullLiteral: "Not a managed type" (
https://hibernate.atlassian.net/browse/HHH-16803?atlOrigin=eyJpIjoiNWJiND...
)
Issue Type: Bug Affects Versions: 6.2.5 Assignee: Unassigned Created: 15/Jun/2023 03:35 AM
Environment: Spring boot 3 application on Windows 10, Java 17, PostgreSQL 13 Priority:
Major Reporter: Thomas Herth (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=712020%...
)
After migrating an application to Spring Boot 3 setting a column to a null value does not
work anymore if the value type of the column is an enum type. The error message is: “Not a
managed type”
criteriaUpdate.set(Table_.enumColum, cb.nullLiteral(EnumClass.class)): does not work
anymore
criteriaUpdate.set(Table_.stringColum, cb.nullLiteral(String.class)): does work
criteriaUpdate.set(Table_.myClassColum, cb.nullLiteral(MyClass.class)): does work
(
https://hibernate.atlassian.net/browse/HHH-16803#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16803#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#100226- sha1:d46780b )