You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a BaseNode with both two relationships :
varnode = newBaseNode();
node.setRelationships(Map.of(
"relation", List.of(
newRelationship(), newAnotherRelationship()
)
))
baseNodeRepository.save(node)
// the node and relations store in neo4j is good with clear type
Since SDN in node can get right instance, I think the relationship will get right,
but the code below, the relationships will get same type of instance, both the Relationship or AnotherRelationship, cannot Get Proper type.
I dig into the code, I found in DefaultNeo4jEntityConverter, In getLabels and map function, I think SDN use labels to get the type of node and relationship, but relationship don't have a label, it has type.
So, the getLabels function cannot get type information with relationship (always get BaseRelationship), and this cause this bug I think.
If I have a BaseNode with Map type relationships defined with a base class
And I have two real class for relationship:
If there is a BaseNode with both two relationships :
Since SDN in node can get right instance, I think the relationship will get right,
but the code below, the relationships will get same type of instance, both the
Relationship
orAnotherRelationship
, cannot Get Proper type.The text was updated successfully, but these errors were encountered: