From cdd83591039ba1e1ff1564142c1c71517c7967fc Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 5 Aug 2020 08:58:35 +0200 Subject: [PATCH] =?UTF-8?q?DATACMNS-1781=20-=20Reinstantate=20PersistentPr?= =?UTF-8?q?opertyPathAccessor.setProperty(=E2=80=A6).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reintroduce method that was earlier removed as part of deprecation cleanup. --- .../data/mapping/PersistentPropertyPathAccessor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/springframework/data/mapping/PersistentPropertyPathAccessor.java b/src/main/java/org/springframework/data/mapping/PersistentPropertyPathAccessor.java index e9b0b16c3..8839d1e8c 100644 --- a/src/main/java/org/springframework/data/mapping/PersistentPropertyPathAccessor.java +++ b/src/main/java/org/springframework/data/mapping/PersistentPropertyPathAccessor.java @@ -55,6 +55,16 @@ public interface PersistentPropertyPathAccessor extends PersistentPropertyAcc @Nullable Object getProperty(PersistentPropertyPath> path, GetOptions context); + /** + * Sets the given value for the {@link PersistentProperty} pointed to by the given {@link PersistentPropertyPath}. The + * lookup of intermediate values must not yield {@literal null}. + * + * @param path must not be {@literal null} or empty. + * @param value can be {@literal null}. + * @see AccessOptions#DEFAULT + */ + void setProperty(PersistentPropertyPath> path, @Nullable Object value); + /** * Sets the given value for the {@link PersistentProperty} pointed to by the given {@link PersistentPropertyPath} * considering the given {@link AccessOptions}.