diff --git a/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java b/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java index b2f32e358..b67963470 100644 --- a/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java +++ b/src/main/java/org/springframework/data/repository/config/ResourceReaderRepositoryPopulatorBeanDefinitionParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2014 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. @@ -31,6 +31,7 @@ import org.w3c.dom.Element; * * @author Oliver Gierke */ +@SuppressWarnings("deprecation") public class ResourceReaderRepositoryPopulatorBeanDefinitionParser extends AbstractSingleBeanDefinitionParser { /* diff --git a/src/main/java/org/springframework/data/repository/init/JacksonRepositoryPopulatorFactoryBean.java b/src/main/java/org/springframework/data/repository/init/JacksonRepositoryPopulatorFactoryBean.java index bebd231f0..0789f35f2 100644 --- a/src/main/java/org/springframework/data/repository/init/JacksonRepositoryPopulatorFactoryBean.java +++ b/src/main/java/org/springframework/data/repository/init/JacksonRepositoryPopulatorFactoryBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2012 the original author or authors. + * Copyright 2012-2014 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. @@ -21,8 +21,10 @@ import org.springframework.beans.factory.FactoryBean; /** * {@link FactoryBean} to set up a {@link ResourceReaderRepositoryPopulator} with a {@link JacksonResourceReader}. * + * @deprecated use {@link Jackson2RepositoryPopulatorFactoryBean} instead * @author Oliver Gierke */ +@Deprecated public class JacksonRepositoryPopulatorFactoryBean extends AbstractRepositoryPopulatorFactoryBean { private ObjectMapper mapper; diff --git a/src/main/java/org/springframework/data/repository/init/JacksonResourceReader.java b/src/main/java/org/springframework/data/repository/init/JacksonResourceReader.java index 487738644..eae5930ff 100644 --- a/src/main/java/org/springframework/data/repository/init/JacksonResourceReader.java +++ b/src/main/java/org/springframework/data/repository/init/JacksonResourceReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2013 the original author or authors. + * Copyright 2012-2014 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. @@ -30,8 +30,10 @@ import org.springframework.util.ClassUtils; /** * A {@link ResourceReader} using Jackson to read JSON into objects. * + * @deprecated use {@link Jackson2ResourceReader} instead. * @author Oliver Gierke */ +@Deprecated public class JacksonResourceReader implements ResourceReader { private static final String DEFAULT_TYPE_KEY = "_class"; diff --git a/src/main/resources/org/springframework/data/repository/config/spring-repository-1.7.xsd b/src/main/resources/org/springframework/data/repository/config/spring-repository-1.7.xsd index cd642a68d..b3d0b184c 100644 --- a/src/main/resources/org/springframework/data/repository/config/spring-repository-1.7.xsd +++ b/src/main/resources/org/springframework/data/repository/config/spring-repository-1.7.xsd @@ -85,6 +85,11 @@ + + + Deprecated, use jackson2-populator instead. + +