File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
jnosql-neo4j/src/main/java/org/eclipse/jnosql/databases/neo4j/mapping Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2121import org .eclipse .jnosql .communication .Settings ;
2222import org .eclipse .jnosql .databases .neo4j .communication .Neo4JConfiguration ;
2323import org .eclipse .jnosql .databases .neo4j .communication .Neo4JDatabaseManager ;
24+ import org .eclipse .jnosql .mapping .core .config .MappingConfigurations ;
2425import org .eclipse .jnosql .mapping .core .config .MicroProfileSettings ;
2526
2627import java .util .function .Supplier ;
@@ -43,7 +44,7 @@ public Neo4JDatabaseManager get() {
4344 Settings settings = MicroProfileSettings .INSTANCE ;
4445 var configuration = new Neo4JConfiguration ();
4546 var managerFactory = configuration .apply (settings );
46- var database = settings .getOrDefault ("database" , DATABASE_DEFAULT );
47+ var database = settings .getOrDefault (MappingConfigurations . GRAPH_DATABASE , DATABASE_DEFAULT );
4748 LOGGER .fine (() -> "Creating a Neo4JDatabaseManager bean with database: " + database );
4849 return managerFactory .apply (database );
4950 }
You can’t perform that action at this time.
0 commit comments