Support mass-indexing entities with @IdClass if they have an explicit @DocumentId

Description

Looking at MassIndexingIndexedTypeGroup#idAttribute method, it seems that it cannot work for an entity having an @IdClass and explicit @DocumentId.

The reason is IdentifiableType#getIdType returns null if id is not a SingularAttribute, see the Zulip topic get id type of a class-id entity.

The issue is about to add a mass indexing test for an entity with @IdClass if they have an explicit @DocumentId and make it working if it would not work with the current main code.

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Priority

Created October 5, 2020 at 7:30 AM
Updated December 2, 2021 at 2:32 PM
Resolved October 1, 2021 at 6:48 AM