> 1.Does Neo4J support *unique property* (Node/Relationship)? Right now there is no native support for that, you have to implement it on your own - define the properties that are unique and then write an getOrCreateNode method and/or endpoint that exposes the following things: - query the index for the property - if it returns something return it - open tx - grab write lock on a dedicated lock node (e.g. by removing an non-existing property) - query the index for the property - if it returns something return it - if not create the node and add it to the index - close tx
It might be added to Neo4j at a later time in the form of a "unique" index type (or differently). > 2.How can I wrap a Node in a MyClass and using it with Rest services? what do you mean by "with rest-services" ? If you mean something like object graph mapping in the server - you might the existing language bindings to map objects to the graph using unmanaged extensions (Spring Data Graph, jo4neo) or the (J)ruby-script-extensions (neo4j.rb). > 3.Can I use in MyClass some JPA annotaions? So if you want to have some cross-store persistence (graph + JPA) then you should look into Spring Data Graph as this supports that mode explicitely. Cheers Michael > > shlomib > > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/some-questions-unique-property-and-Rest-tp3248352p3248352.html > Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user