Neo4j 1.8.1 ExecutionEngine构造函数更改

时间:2013-01-21 11:51:44

标签: java neo4j

我刚刚使用Neo4j 1.8升级到1.8.1,并注意到ExecutionEngine构造函数合同发生了变化。 ExcecutionEngine(GraphDatabaseService)构造函数不再可用。

以下是代码段:

import org.neo4j.cypher.CypherException;
import org.neo4j.cypher.ExecutionEngine;
import org.neo4j.cypher.ExecutionResult;
import org.neo4j.graphdb.GraphDatabaseService;

public class CypherQueryExecutionService {
    private final ExecutionEngine executionEngine;

    public CypherQueryExecutionService(GraphDatabaseService 
graphDatabaseService) {
        executionEngine = new ExecutionEngine(graphDatabaseService);
    }
...

POM提取物:

        <dependency>
            <groupId>org.neo4j</groupId>
            <artifactId>neo4j</artifactId>
            <version>1.8.1</version>
        </dependency>

        <dependency>
            <groupId>org.neo4j</groupId>
            <artifactId>neo4j-kernel</artifactId>
            <version>1.8.1</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.neo4j.app</groupId>
            <artifactId>neo4j-server</artifactId>
            <version>1.8.1</version>
        </dependency>

        <dependency>
            <groupId>org.neo4j.app</groupId>
            <artifactId>neo4j-server</artifactId>
            <version>1.8.1</version>
            <type>jar</type>
            <classifier>static-web</classifier>
        </dependency>

如果没有快速修复,那么请您提供正确使用StringLogger的示例吗? 在我们的例子中,我们使用SLF4J上的logback。

谢谢,

史蒂芬

0 个答案:

没有答案