@Test public void itSavesRelationTypes() throws JsonProcessingException { final TinkerPopGraphManager graphManager = newGraph() .wrap(); saveRelationTypes(graphManager, relationType("concept", "hasFirstPerson", "person", "someRel", false, false, false, UUID.randomUUID()), relationType("concept", "hasSecondPerson", "person", "otherRe;", false, false, false, UUID.randomUUID()) ); assertThat(graphManager.getGraph().traversal().V().count().next(), is(2L)); }
static void saveRelationTypes(TinkerPopGraphManager graphManager, RelationType... relationTypes) { try (TinkerPopOperations dataStoreOperations = new TinkerPopOperations(graphManager)) { dataStoreOperations.saveRelationTypes(relationTypes); dataStoreOperations.success(); } }
TinkerPopOperationsForMigrations { static void saveRelationTypes(TinkerPopGraphManager graphManager, RelationType... relationTypes) { try (TinkerPopOperations dataStoreOperations = new TinkerPopOperations(graphManager)) { dataStoreOperations.saveRelationTypes(relationTypes); dataStoreOperations.success(); } } }
TinkerPopOperationsForMigrations { static void saveRelationTypes(TinkerPopGraphManager graphManager, RelationType... relationTypes) { try (TinkerPopOperations dataStoreOperations = new TinkerPopOperations(graphManager)) { dataStoreOperations.saveRelationTypes(relationTypes); dataStoreOperations.success(); } }  }
TinkerPopOperationsForMigrations { static void saveRelationTypes(TinkerPopGraphManager graphManager, RelationType... relationTypes) { try (TinkerPopOperations dataStoreOperations = new TinkerPopOperations(graphManager)) { dataStoreOperations.saveRelationTypes(relationTypes); dataStoreOperations.success(); } }   }
TinkerPopOperationsForMigrations { static void saveRelationTypes(TinkerPopGraphManager graphManager, RelationType... relationTypes) { try (TinkerPopOperations dataStoreOperations = new TinkerPopOperations(graphManager)) { dataStoreOperations.saveRelationTypes(relationTypes); dataStoreOperations.success(); } }    }