DATACMNS-207 - Removed getPropertyDescriptor() from PersistentProperty.

This commit is contained in:
Oliver Gierke
2012-08-16 10:46:40 +02:00
parent beea916da0
commit d9e5d92a16
2 changed files with 15 additions and 18 deletions

View File

@@ -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<P extends PersistentProperty<P>> {
*/
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.

View File

@@ -134,14 +134,6 @@ public abstract class AbstractPersistentProperty<P extends PersistentProperty<P>
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()