spring data neo4j 3.0.0 - why two labels set by default -


i need write batch importing utility neo4j database don't want lose repository feature of sdn. achieve goal want insert such nodes can still queried using auto generated repository methods.

i inserted nodes database , looked @ properties , labels see how set , noticed sdn inserted nodes have 2 labels. example nodes representing class someclass have labels: ["_someclass", "someclass"]. question is: why set two, identical labels each node?

oh that's simple. somehow have note if current node of type someclass, prepending "_". there labels added each super-type need differentiate actual type of node in spring data neo4j is.

so have: _developer, developer, employee, person class hierarchy person down developer. , there additional labels interfaces.

when do: developerrepository.findall() want _developer back, not ones derived developer.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -