Review if we need to add the discriminator to the EntityKeyMetadata

Description

Different entity types can have the same entity key metadata if they are part of the same hierarchy and SingleTable inheritance strategy is used.

This so far has only be a problem for the remote neo4j dialect where we use the key metadata as key of a map to get the queries to use (see OGM-1221).

We should check if it makes sense to add the Discriminator as a field for EntityKeyMetadata as there might be other cases where it helps to have it.

Environment

None

Status

Assignee

Unassigned

Reporter

Davide D'Alto

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major