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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -