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

When using @Extension annotations on collection or map fields, the vendor extensions are only applied to the member metadata (AbstractMemberMetaData) but not to the container metadata (CollectionMetaData / MapMetaData).

The XML metadata handler doesn't have this problem since extensions nested inside <collection> elements are applied to the collection 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.

1 participant