Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 9218cd2b0c4e6709b7bb315760aca09d283fe674
https://github.com/hibernate/hibernate-orm/commit/9218cd2b0c4e6709b7bb315...
Author: Emond Papegaaij <emond.papegaaij(a)topicus.nl>
Date: 2026-08-05 (Wed, 05 Aug 2026)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/boot/models/xml/internal/ManagedTypeProcessor.java
A
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/partial/PartialOverlayBaseEntity.java
A
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/partial/PartialOverlayChild.java
A
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/partial/PartialOverlayEntityListenerTest.java
A
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/partial/PartialOverlayListener.java
A
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/callbacks/xml/partial/PartialOverlayParent.java
A hibernate-core/src/test/resources/mappings/callbacks/partial-overlay.xml
Log Message:
-----------
HHH-20452 Don't stamp synthetic @Access when applying a partial XML overlay
In additive (non-metadata-complete) entity XML, the access type was
resolved via a coalesce chain that fell back to PROPERTY when no
explicit value was set, and the result was then unconditionally
stamped onto the class via @Access. For an entity that inherits @Id
from a @MappedSuperclass field this silently overrode the natural
field-access detection: relationship annotations on fields (e.g.
@OneToMany) became invisible to the binder and boot failed in
JDBC-type resolution with
MappingException: Basic collection has element type 'Child' which
is not a known basic type (attribute is not annotated
'@ElementCollection', '@OneToMany', or '@ManyToMany')
Only stamp @Access in override mode when the access type was
explicitly supplied (entity / entity-mappings access attribute or
PU-defaults <access>). Keep the fallback chain for internal XML
attribute processing. This mirrors the existing behavior of
processMappedSuperclassMetadata.
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications