Karol Jasłowski (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5cde605...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiM2Y1NDg5ZDUz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16709?atlOrigin=eyJpIjoiM2Y1ND...
) HHH-16709 (
https://hibernate.atlassian.net/browse/HHH-16709?atlOrigin=eyJpIjoiM2Y1ND...
) @EmbeddedId Foreign key comparator throws NPE with order_updates enabled (
https://hibernate.atlassian.net/browse/HHH-16709?atlOrigin=eyJpIjoiM2Y1ND...
)
Issue Type: Bug Assignee: Unassigned Attachments: demo comparable in embedded id.zip,
image-20230527-213441 (653dc6d2-edde-423f-b767-4fcbc9d5259e).png,
image-20230527-213441.png Created: 27/May/2023 14:36 PM Priority: Major Reporter: Karol
Jasłowski (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5cde605...
)
java.lang.NullPointerException is thrown when saving entity having complex embedded
foreign keys with order_updates set to true (maybe same might happen with order_inserts
set to true)
Problems was noticed in Hibernate 6.2.3.Final with Spring Boot 3.0.0, In Hibernate 5
function worked correctly. (I am migrating my application to new Spring Boot 3.0.0)
Of course you may require to implement Comparable in complex embedded id structures, but
please check if it was intended requirement
To reproduce problem use attached example application, execute post endpoint
(
https://hibernate.atlassian.net/browse/HHH-16709#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16709#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:85acc52 )