-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query with base class will auto use the base class name as label #2933
Comments
Anyone? |
The basic working is well documented https://docs.spring.io/spring-data/neo4j/reference/object-mapping/metadata-based-mapping.html#_a_note_on_class_hierarchies and we don't have any plans changing this. For the other end of the relationship you either need to have the concrete class as type parameter. We might investigate not to render a label for the other end of relationship if we can only find an abstract. Wdyt, @meistermeier |
I think that using no label is a no-go here. That's not only that we load a lot of extra data that might be not of interest but also because after the loading happened the mapping logic will use the same approach to determine what to map (a |
I don't get it.
@michael-simons
I have the same relation point to different type node, it works well in pure Neo4j(both create/query), but seems in SDN it became strange. |
I have a base class for common field
My real node
When I use repository to query the MyNode, it will show cypher like this
And result nodeList is empty, because those node don't have BaseNode label.
Anyways to get rid of this feature?
I tried removed
private UUID id;
part but still not work too.The text was updated successfully, but these errors were encountered: