Skip to content

Propagate vendor extensions to collection/map container metadata in annotation reader#141

Open
jasper-vandemalle wants to merge 1 commit intodatanucleus:masterfrom
jasper-vandemalle:col-ext-propagation
Open

Propagate vendor extensions to collection/map container metadata in annotation reader#141
jasper-vandemalle wants to merge 1 commit intodatanucleus:masterfrom
jasper-vandemalle:col-ext-propagation

Conversation

@jasper-vandemalle
Copy link

@jasper-vandemalle jasper-vandemalle commented Feb 23, 2026

Fixes #142.

@Extension annotations on a collection or map field are applied to the member metadata (AbstractMemberMetaData) but not to the container metadata (CollectionMetaData / MapMetaData).

The XML metadata path doesn't have this problem: extensions nested inside <collection> or <map> elements are applied to the container metadata directly.

The fix adds contmd.addExtensions(extensions) in JDOAnnotationReader.processMemberAnnotations(), inside the existing if (contmd != null) block, so that vendor extensions reach both the container metadata and the member metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@Extension on collection/map fields not propagated to container metadata

1 participant