Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15072 (
https://hibernate.atlassian.net/browse/HHH-15072?atlOrigin=eyJpIjoiMjljMm...
)
Re: Default EmbeddableInstantiator for records (
https://hibernate.atlassian.net/browse/HHH-15072?atlOrigin=eyJpIjoiMjljMm...
)
A small note on why we had to introduce XClass.ACCESS_RECORD and the new AccessType.RECORD
since colleagues asked for the reasoning while discussing the PR.
When an entity uses AccessType.PROPERTY and refers to a record as embeddable, we would
inherit the access type for the embeddable. Since record classes generally don’t have
getters, this usually leads to embeddables for such classes to be empty. By default, we
will now consider all record components for record embeddables. We also need the explicit
access type so that people can switch from AccessType.FIELD to AccessType.RECORD.
(
https://hibernate.atlassian.net/browse/HHH-15072#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15072#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#100206- sha1:5148740 )