基于 Neo4jClient 的 ID 生成器 @Component class MyIdGenerator implements IdGenerator<String> { private final Neo4jClient neo4jClient; public MyIdGenerator(Neo4jClient neo4jClient) { this.neo4jClient = neo4jClient; } @Override public String generateId(String
清单3显示了我们的测试类的源代码:Neo4jClient。 清单1. Initializes the Neo4j Driver. */ public Neo4jClient() { // Create the Neo4j driver } /** * Test methods */ public static void main(String ... args) { Neo4jClient client = new Neo4jClient(); client.createPerson(new Person("Duke", 22)); Set<Person Neo4jClient应用程序的Maven POM <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3
Neo4jClient – Neo4j的.NET客户端绑定。 npgsql – PostgreSQL的.NET数据提供程序。它允许为.NET框架开发的任何程序访问PostgreSQL数据库服务器。