Skip to content

Commit c51f90f

Browse files
GH-2488 - Use default database selection.
In main, deprecated methods causing the error have been removed (7.0+) Fixes #2488.
1 parent 60880b2 commit c51f90f

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

src/main/java/org/springframework/data/neo4j/core/Neo4jTemplate.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -124,30 +124,6 @@ public final class Neo4jTemplate implements
124124

125125
private ProjectionFactory projectionFactory;
126126

127-
@Deprecated
128-
public Neo4jTemplate(Neo4jClient neo4jClient, Neo4jMappingContext neo4jMappingContext,
129-
DatabaseSelectionProvider databaseSelectionProvider) {
130-
131-
this(neo4jClient, neo4jMappingContext, EntityCallbacks.create());
132-
133-
if (databaseSelectionProvider != neo4jClient.getDatabaseSelectionProvider()) {
134-
throw new IllegalStateException(
135-
"The provided database selection provider differs from the Neo4jClient's one.");
136-
}
137-
}
138-
139-
@Deprecated
140-
public Neo4jTemplate(Neo4jClient neo4jClient, Neo4jMappingContext neo4jMappingContext,
141-
DatabaseSelectionProvider databaseSelectionProvider, EntityCallbacks entityCallbacks) {
142-
143-
this(neo4jClient, neo4jMappingContext, entityCallbacks);
144-
145-
if (databaseSelectionProvider != neo4jClient.getDatabaseSelectionProvider()) {
146-
throw new IllegalStateException(
147-
"The provided database selection provider differs from the Neo4jClient's one.");
148-
}
149-
}
150-
151127
public Neo4jTemplate(Neo4jClient neo4jClient) {
152128
this(neo4jClient, new Neo4jMappingContext());
153129
}

src/main/java/org/springframework/data/neo4j/core/ReactiveNeo4jTemplate.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,6 @@ public final class ReactiveNeo4jTemplate implements
127127

128128
private ProjectionFactory projectionFactory;
129129

130-
@Deprecated
131-
public ReactiveNeo4jTemplate(ReactiveNeo4jClient neo4jClient, Neo4jMappingContext neo4jMappingContext,
132-
ReactiveDatabaseSelectionProvider databaseSelectionProvider) {
133-
134-
this(neo4jClient, neo4jMappingContext);
135-
if (databaseSelectionProvider != neo4jClient.getDatabaseSelectionProvider()) {
136-
throw new IllegalStateException("The provided database selection provider differs from the ReactiveNeo4jClient's one.");
137-
}
138-
}
139-
140130
public ReactiveNeo4jTemplate(ReactiveNeo4jClient neo4jClient, Neo4jMappingContext neo4jMappingContext) {
141131

142132
Assert.notNull(neo4jClient, "The Neo4jClient is required");

0 commit comments

Comments
 (0)