diff --git a/src/main/asciidoc/faq/faq.adoc b/src/main/asciidoc/faq/faq.adoc index ff1c90614..ad726edf3 100644 --- a/src/main/asciidoc/faq/faq.adoc +++ b/src/main/asciidoc/faq/faq.adoc @@ -3,6 +3,54 @@ Here are a couple of more frequently asked question in addition to the ones in the <>. +[[faq.change-driver-version]] +== Which Neo4j Java Driver can be used and how? + +SDN6 relies on the Neo4j Java Driver version 4.x. +Each SDN6 release uses a Neo4j Java Driver version compatible with the latest Neo4j available at the time of its +release. +While patch versions of the Neo4j Java Driver are usually drop-in replacements, SDN6 makes sure that even minor versions +are interchangeable as it checks for the presence or absence of methods or interface changes if necessary. + +Therefore, you are able to use any 4.x Neo4j Java Driver with any SDN6 6.x version. + +=== With Spring Boot + +These days, a Spring boot deployment is the most likely deployment of a Spring Data based applications. Please use +Spring Boots dependency management to change the driver version like this: + +.Change the driver version from Maven (pom.xml) +[source,xml] +---- + + 4.4.2 + +---- + +Or + +.Change the driver version from Gradle (gradle.properties) +[source,properties] +---- +neo4j-java-driver.version = 4.4.2 +---- + +=== Without Spring Boot + +Without Spring Boot, you would just manually declare the dependency. For Maven, we recommend using the `` +section like this: + +.Change the driver version without Spring Boot from Maven (pom.xml) +---- + + + org.neo4j.driver + neo4j-java-driver + 4.4.2 + + +---- + [[faq.multidatabase]] == Neo4j 4.0 supports multiple databases - How can I use them?