浙江省住房和城乡建设厅干部学校网站,七牛云配置wordpress,上海知名进出口贸易公司,深圳市住房和建设局工程交易我有一個簡單的關係測試#xff0c;我試圖運行使用Rest API創建一個獨特的節點(java-rest-binding)https://github.com/neo4j/java-rest-binding但不幸的是我被困在某些東西上#xff0c;這裏是細節#xff1a;(非唯一的節點和關係工作完全正常#xff0c;與這一點#xf…我有一個簡單的關係測試我試圖運行使用Rest API創建一個獨特的節點(java-rest-binding)https://github.com/neo4j/java-rest-binding但不幸的是我被困在某些東西上這裏是細節(非唯一的節點和關係工作完全正常與這一點它沒有很有可能我做的東西幼稚(原諒我缺乏的Neo4j的知識)getOrCreate for java-rest-api neo4j失敗final UserModel userModel new UserModel();final HashMap uModelAttributes new HashMap(0);uModelAttributes.put(name, AnirudhVyas);userModel.setAttributes(uModelAttributes);final HashSet buyHistory new HashSet();final Action buyAction new Action();final ProductModel productModel new ProductModel();final HashMap attributes new HashMap(0);attributes.put(name, mercedes benz );attributes.put(make, mercedes benz);attributes.put(model, sls 550);attributes.put(year, 2014);productModel.setAttributes(attributes);buyAction.setProduct(productModel);buyHistory.add(buyAction);userModel.setBuyHistory(buyHistory);System.out.println(Before);new UserModelDAO().createCompleteTree(userModel);System.out.println(Completed 如果我。使用此道final RestNode root api.getOrCreateNode(api.index().forNodes(users, MapUtil.stringMap(IndexManager.PROVIDER, lucene, type, fulltext)), name, m.getAttributes().get(name), m.getAttributes());api.getOrCreateNode(api.index().forNodes(products, MapUtil.stringMap(IndexManager.PROVIDER, lucene, type, fulltext)), name, buyAction.getProduct().getAttributes().get(name), buyAction.getProduct().getAttributes()), RelationshipTypes.BOUGHT);這基本上失敗java.lang.RuntimeException: Error retrieving or creating node for key name and value AnirudhVyas with index usersat org.neo4j.rest.graphdb.ExecutingRestAPI.getOrCreateNode(ExecutingRestAPI.java:448)at org.neo4j.rest.graphdb.RestAPIFacade.getOrCreateNode(RestAPIFacade.java:223)at xxxx.xxxx.xxxx.graph.UserModelCreateTasteKeyNeo4JBatchCallback.recordBatch(UserModelCreateTasteKeyNeo4JBatchCallback.java:61)