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. |