Tag: Spring Data Neo4J
-
Spring Data Neo4J: Requested a entity of type ‘X’, but the entity is of type ‘Y’
PROBLEM Let’s assume we have a node entity like this:- When saving this entity, we get this exception:- SOLUTION This problem occurs because relationship likes is being used by both Restaurant entity and Beverage entity. To fix it, we need to enforce the target type. Read More…