Don't scan for @Persistent types as they may not be meant for Neo4j
Closes gh-25069
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -148,7 +148,7 @@ class Neo4jDataAutoConfigurationTests {
|
||||
this.contextRunner.withUserConfiguration(EntityScanConfig.class).run((context) -> {
|
||||
Neo4jMappingContext mappingContext = context.getBean(Neo4jMappingContext.class);
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestNode.class)).isTrue();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestPersistent.class)).isTrue();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestPersistent.class)).isFalse();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestRelationshipProperties.class)).isTrue();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestNonAnnotated.class)).isFalse();
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -132,7 +132,7 @@ class Neo4jReactiveDataAutoConfigurationTests {
|
||||
this.contextRunner.withUserConfiguration(EntityScanConfig.class).run((context) -> {
|
||||
Neo4jMappingContext mappingContext = context.getBean(Neo4jMappingContext.class);
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestNode.class)).isTrue();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestPersistent.class)).isTrue();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestPersistent.class)).isFalse();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestRelationshipProperties.class)).isTrue();
|
||||
assertThat(mappingContext.hasPersistentEntityFor(TestNonAnnotated.class)).isFalse();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user