diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemReader.java index f9416b4351..420214dd0f 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemReader.java @@ -59,7 +59,11 @@ * * @author Michael Minella * @author Mahmoud Ben Hassine + * + * @deprecated since 5.0 in favor of the item reader from + * https://github.com/spring-projects/spring-batch-extensions/blob/main/spring-batch-neo4j */ +@Deprecated public class Neo4jItemReader extends AbstractPaginatedDataItemReader implements InitializingBean { protected Log logger = LogFactory.getLog(getClass()); diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemWriter.java index 9ce5c29160..698dcd091c 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2018 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. @@ -42,7 +42,11 @@ * @author Glenn Renfro * @author Mahmoud Ben Hassine * + * @deprecated since 5.0 in favor of the item writer from + * https://github.com/spring-projects/spring-batch-extensions/blob/main/spring-batch-neo4j + * */ +@Deprecated public class Neo4jItemWriter implements ItemWriter, InitializingBean { protected static final Log logger = LogFactory diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemReaderBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemReaderBuilder.java index 5b345406d3..70e36fc748 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemReaderBuilder.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemReaderBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-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. @@ -27,9 +27,14 @@ * A builder for the {@link Neo4jItemReader}. * * @author Glenn Renfro + * @author Mahmoud Ben Hassine * @since 4.0 * @see Neo4jItemReader + * + * @deprecated since 5.0 in favor of the item reader builder from + * https://github.com/spring-projects/spring-batch-extensions/blob/main/spring-batch-neo4j */ +@Deprecated public class Neo4jItemReaderBuilder { private SessionFactory sessionFactory; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemWriterBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemWriterBuilder.java index b6823b137d..2a8fc0734c 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemWriterBuilder.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/builder/Neo4jItemWriterBuilder.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 the original author or authors. + * Copyright 2017-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. @@ -26,9 +26,14 @@ * A builder implementation for the {@link Neo4jItemWriter} * * @author Glenn Renfro + * @author Mahmoud Ben Hassine * @since 4.0 * @see Neo4jItemWriter + * + * @deprecated since 5.0 in favor of the item writer builder from + * https://github.com/spring-projects/spring-batch-extensions/blob/main/spring-batch-neo4j */ +@Deprecated public class Neo4jItemWriterBuilder { private boolean delete = false;