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.

Environment

None

Assignee

Unassigned

Reporter

Fabio Massimo Ercoli

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure