This came up while looking into https://github.com/quarkusio/quarkus/issues/33740 When there’s an entity hierarchy that relies on the usage of overridden properties, a state built for a subtype ends up having nulls for such a property. For example, with a model
trying to persist a rectangle entity :
will result in https://github.com/hibernate/hibernate-orm/blob/f22d7e1328c0e063528eb8a16ccaf6a064e8f713/hibernate-core/src/main/java/org/hibernate/event/internal/AbstractSaveEventListener.java#L325 returning an array of nulls and failing the operation. Also, confirmed that switching to @Access(AccessType.PROPERTY) for such properties helps to work around the problem. |