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 Pull Request Sent ). 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. |