diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/mapping/PersistentProperty.java b/spring-data-commons-core/src/main/java/org/springframework/data/mapping/PersistentProperty.java index 9d2eda9d1..c5b8f1045 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/mapping/PersistentProperty.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/mapping/PersistentProperty.java @@ -1,6 +1,20 @@ +/* + * Copyright 2011-2012 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.springframework.data.mapping; -import java.beans.PropertyDescriptor; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Collection; @@ -42,15 +56,6 @@ public interface PersistentProperty
> { */ Iterable extends TypeInformation>> getPersistentEntityType(); - /** - * Returns the {@link PropertyDescriptor} backing the {@link PersistentProperty}. - * - * @deprecated use {@link #getGetter()} or {@link #getSetter()} directly, will be removed for 1.4.0.GA. - * @return - */ - @Deprecated - PropertyDescriptor getPropertyDescriptor(); - /** * Returns the getter method to access the property value if available. Might return {@literal null} in case there is * no getter method with a return type assignable to the actual property's type. diff --git a/spring-data-commons-core/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java b/spring-data-commons-core/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java index dccb18f3e..bbe756356 100644 --- a/spring-data-commons-core/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java +++ b/spring-data-commons-core/src/main/java/org/springframework/data/mapping/model/AbstractPersistentProperty.java @@ -134,14 +134,6 @@ public abstract class AbstractPersistentProperty
return information == null || simpleTypeHolder.isSimpleType(information.getType()) ? null : information; } - /* - * (non-Javadoc) - * @see org.springframework.data.mapping.PersistentProperty#getPropertyDescriptor() - */ - public PropertyDescriptor getPropertyDescriptor() { - return propertyDescriptor; - } - /* * (non-Javadoc) * @see org.springframework.data.mapping.PersistentProperty#getGetter()