Enhance working with inherited entities by using multiple Labels

Description

At the moment if you use an inheritance structure within your entity classes the nodes are not created correctly from my point of view.

If I model a structure like this...

... Hibernate-Ogm generates a Node with the Labels ENTITY and PERSON. Furthermore it gets the properties Id, Name and DTYPE. The DTYPE is then the name of the concrete subclass.
From my point of view I would expect a Node with the Labels ENTITY, PERSON and PLAYER or ENTITY and PLAYER. I'm note absolutly sure what's the correct solution here but it feels strange not to be able to query my node like this:

Instead I have to write it like this...

...which feels strange.

Environment

None

Status

Assignee

Davide D'Alto

Reporter

RichardK

Labels

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

Affects versions

Priority

Major
Configure