Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZDM5YzljZWY3...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16774?atlOrigin=eyJpIjoiZDM5Yz...
) HHH-16774 (
https://hibernate.atlassian.net/browse/HHH-16774?atlOrigin=eyJpIjoiZDM5Yz...
) Composite field tracking in enhancement not working if field not annotated with
@Embedded (
https://hibernate.atlassian.net/browse/HHH-16774?atlOrigin=eyJpIjoiZDM5Yz...
)
Issue Type: Bug Affects Versions: 6.2.4 Assignee: Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: bytecode-enhancement Created: 09/Jun/2023 07:32 AM Priority: Major Reporter:
Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
InlineDirtyCheckingHandler only applies the
CodeTemplates.CompositeFieldDirtyCheckingHandler if persistentField.hasAnnotation(
Embedded.class ) , which is a bit counterintuitive and actually can lead to bugs when
using enhancement like in Quarkus.
It is especially confusing because Hibernate works just fine without the @Embedded
annotation. The check seems unnecessary since we already check if the target type has the
@Embeddable annotation.
(
https://hibernate.atlassian.net/browse/HHH-16774#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16774#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:956085d )