committed by
Jens Schauder
parent
aecdf5001a
commit
2618221115
@@ -64,17 +64,6 @@ public interface PersistentProperty<P extends PersistentProperty<P>> {
|
||||
*/
|
||||
TypeInformation<?> getTypeInformation();
|
||||
|
||||
/**
|
||||
* Returns the {@link TypeInformation} if the property references a {@link PersistentEntity}. Will return
|
||||
* {@literal null} in case it refers to a simple type. Will return {@link Collection}'s component type or the
|
||||
* {@link Map}'s value type transparently.
|
||||
*
|
||||
* @return
|
||||
* @deprecated since 2.6 for removal in 3.0. Use {@link #getPersistentEntityTypeInformation()} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
Iterable<? extends TypeInformation<?>> getPersistentEntityTypes();
|
||||
|
||||
/**
|
||||
* Returns the detected {@link TypeInformation TypeInformations} if the property references a {@link PersistentEntity}.
|
||||
* Will return an {@literal empty} {@link Iterable} in case it refers to a simple type. Will return the {@link Collection}'s
|
||||
|
||||
@@ -158,15 +158,6 @@ public abstract class AbstractPersistentProperty<P extends PersistentProperty<P>
|
||||
return information;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.mapping.PersistentProperty#getPersistentEntityTypes()
|
||||
*/
|
||||
@Override
|
||||
public Iterable<? extends TypeInformation<?>> getPersistentEntityTypes() {
|
||||
return getPersistentEntityTypeInformation();
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.mapping.PersistentProperty#getPersistentEntityTypeInformation()
|
||||
|
||||
@@ -46,26 +46,6 @@ public class InstantiationAwarePropertyAccessor<T> implements PersistentProperty
|
||||
|
||||
private T bean;
|
||||
|
||||
/**
|
||||
* Creates an {@link InstantiationAwarePropertyAccessor} using the given delegate {@link PersistentPropertyAccessor}
|
||||
* and {@link EntityInstantiators}.
|
||||
*
|
||||
* @param delegate must not be {@literal null}.
|
||||
* @param instantiators must not be {@literal null}.
|
||||
* @deprecated since 2.4. Using this constructor allows only setting a single property as
|
||||
* {@link PersistentPropertyAccessor} holds a reference to the initial bean state.
|
||||
*/
|
||||
@Deprecated
|
||||
public InstantiationAwarePropertyAccessor(PersistentPropertyAccessor<T> delegate, EntityInstantiators instantiators) {
|
||||
|
||||
Assert.notNull(delegate, "Delegate PersistentPropertyAccessor must not be null!");
|
||||
Assert.notNull(instantiators, "EntityInstantiators must not be null!");
|
||||
|
||||
this.instantiators = instantiators;
|
||||
this.delegateFunction = t -> delegate;
|
||||
this.bean = delegate.getBean();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an {@link InstantiationAwarePropertyAccessor} using the given delegate {@code accessorFunction} and
|
||||
* {@link EntityInstantiators}. {@code accessorFunction} is used to obtain a new {@link PersistentPropertyAccessor}
|
||||
|
||||
Reference in New Issue
Block a user