Suppress Neo4J-related deprecation warnings
See gh-6976
This commit is contained in:
@@ -20,6 +20,7 @@ import java.util.List;
|
||||
|
||||
import org.springframework.data.neo4j.repository.GraphRepository;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public interface CustomerRepository extends GraphRepository<Customer> {
|
||||
|
||||
public Customer findByFirstName(String firstName);
|
||||
|
||||
@@ -27,6 +27,7 @@ public class SampleNeo4jApplication implements CommandLineRunner {
|
||||
@Autowired
|
||||
private CustomerRepository repository;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void run(String... args) throws Exception {
|
||||
this.repository.deleteAll();
|
||||
|
||||
Reference in New Issue
Block a user