Hi,
I'm trying to activate the persistence system neo4j in place of any SQL server.
To do that I change the content of the file
resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
and put :
- org.apache.syncope.core.persistence.neo4j.PersistenceContext
- org.apache.syncope.core.persistence.neo4j.MasterDomain
- org.neo4j.driver.Driver
I also change the core.properties to define the source and secret for
the Aura NEO4J database.
Of course I add the dependencies needed for neo4j in the CORE pom.xml [1]
What is strange, is that spring tries to find meta-data information
directly in class files that should be generated in a classes
directory and fails.
The same is not required when using a jpa persistence, spring analyzes
meta-data through the jar via the classpath.
Of course I can add the java source file (PersistenceContext,
MasterDomain) in the CORE to generate class files, but other problems
appear.
Do you have an idea(s) why spring changes the way to look for
meta-data in that case ?
Best regards,
Stéphane POPOFF
[1]
<dependency>
<groupId>org.apache.syncope.core</groupId>
<artifactId>syncope-core-persistence-neo4j</artifactId>
<version>4.1.0</version>
</dependency>
<dependency>
<groupId>org.neo4j.driver</groupId>
<artifactId>neo4j-java-driver</artifactId>
<version>5.28.10</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>7.5.1</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-dsl</artifactId>
<version>2025.2.6</version>
</dependency>