Hi,

Basically, I have 3 Java classes: 


   - B subclassing A
   - C subclassing A

Since B and C have the same properties, I don't want to end up with two 
distinct types of node when I store them to the graph. Moreover, in the 
reality world, it targets the same entity. 
Otherwise, it would lead to too many duplications regarding my use cases.

Meaning that If I store B and C, both inheriting from the same A, then I 
expect them to be considered as the same and unique node, as if I was 
storing A directly.
However, in a retrieval query, I want them as distinct classes: B and C 
regarding the concrete types.

The main reason I want to keep B and C as distinct classes in my sources 
classes is to keep my Domain design very explicit (DDD).

Is it possible to achieve this natively with SDN ?
I didn't find a similar case in the official documentation. 
Perhaps setting a particular Label Strategy, that would force the nodes to 
be saved as the parent ones, while memorizing the concrete types (a 
specific added field) for further mapping nodes => Java?

Thanks a lot,

Michael


-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to