See gh-6976
@ -45,6 +45,7 @@ import org.springframework.data.neo4j.template.Neo4jOperations;
* @author Stephane Nicoll
* @since 1.4.0
*/
@SuppressWarnings("deprecation")
@Configuration
@ConditionalOnClass({ Neo4jSession.class, Neo4jOperations.class })
@ConditionalOnMissingBean(Neo4jOperations.class)
@ -52,6 +52,7 @@ import org.springframework.data.neo4j.repository.support.GraphRepositoryFactoryB
* @see EnableNeo4jRepositories
@ConditionalOnClass({ Neo4jSession.class, GraphRepository.class })
@ConditionalOnMissingBean({ GraphRepositoryFactoryBean.class,
@ -30,6 +30,7 @@ import org.springframework.data.repository.config.RepositoryConfigurationExtensi
*
* @author Michael Hunger
class Neo4jRepositoriesAutoConfigureRegistrar
extends AbstractRepositoryConfigurationSourceSupport {
@ -19,6 +19,7 @@ package org.springframework.boot.autoconfigure.data.alt.neo4j;
import org.springframework.boot.autoconfigure.data.neo4j.city.City;
import org.springframework.data.neo4j.repository.GraphRepository;
public interface CityNeo4jRepository extends GraphRepository<City> {
}
@ -53,6 +53,7 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Vince Bickers
public class MixedNeo4jRepositoriesAutoConfigurationTests {
private AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
@ -44,6 +44,7 @@ import static org.mockito.Mockito.mock;
public class Neo4jDataAutoConfigurationTests {
private AnnotationConfigApplicationContext context;
@ -44,6 +44,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class Neo4jRepositoriesAutoConfigurationTests {
@ -20,8 +20,10 @@ import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface CityRepository extends GraphRepository<City> {
@Override
Page<City> findAll(Pageable pageable);
@ -18,6 +18,7 @@ package org.springframework.boot.autoconfigure.data.neo4j.country;
public interface CountryRepository extends GraphRepository<Country> {
@ -20,6 +20,7 @@ import java.util.List;
public interface CustomerRepository extends GraphRepository<Customer> {
public Customer findByFirstName(String firstName);
@ -27,6 +27,7 @@ public class SampleNeo4jApplication implements CommandLineRunner {
@Autowired
private CustomerRepository repository;
public void run(String... args) throws Exception {
this.repository.deleteAll();