I'm doing a test movie project to learn neo4j and SDN.The data domain is based on cineasts example. And here is a problem I'm facing:
As you know movie director may be a producer or a writer or even an actor. In my *java* class architecture I have *Person* superclass. And it has children: *Producer, Director, Actor* and *Writer*. All these children nodes are on the same level, thus they are incompatible types. I'm doing a test movie project to learn neo4j and SDN and here is a problem I'm facing: As you know movie director may be a producer or a writer or even an actor. In my *java* class architecture I have *Person* superclass. And it has children: *Producer, Director, Actor* and *Writer*. All these children nodes are on the same level, thus they are incompatible types. While on the other hand, in *neo4j* I have nodes that are at the same time Producer, Director and Writer. [image: example of node that has several labels] So I have a problem when I want to get all directors via repository.findAll() method (or via custom method with Cypher query). Spring tells me: java.lang.IllegalArgumentException: Can not set java.util.Set field com.test.db.domain.Producer.producedMovies to com.test.db.domain.Director I use Neo4j 2.0.1 and Spring Data Neo4j 3.0.1.RELEASE. What is the right way to solve such kind of issue? Code and full stack trace are here: http://stackoverflow.com/questions/23094160/how-can-i-make-a-node-to-be-of-multiple-types -- 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.
