Yuriy Dubyna
Yuriy Dubyna

Reputation: 92

Spring-data-neo4j-4 How to specify more than one label in @NodeEntity annotation

I need more than one Label for my entities . Is there a way to specify it in annotation or any other way to do it?

Upvotes: 2

Views: 1424

Answers (1)

Luanne
Luanne

Reputation: 19373

At the moment, node entities can have multiple labels only via inheritance. For example, if you have a Person class with Employee extending it, the Employee entity will have both Person and Employee labels.

Upvotes: 3

Related Questions