Skip to content

Commit 8dd3f1b

Browse files
committed
Prefer implementing PersistentPropertyAccessor over PersistentPropertyPathAccessor.
Fixes: #1368 Related issue: spring-projects/spring-data-commons#2813
1 parent d0a1b13 commit 8dd3f1b

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/convert/MappingCassandraConverter.java

+1-18
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ private CassandraPersistentProperty getPersistentProperty(String name, TypeInfor
14541454
}
14551455
}
14561456

1457-
private static class PropertyTranslatingPropertyAccessor<T> implements PersistentPropertyPathAccessor<T> {
1457+
private static class PropertyTranslatingPropertyAccessor<T> implements PersistentPropertyAccessor<T> {
14581458

14591459
private final PersistentPropertyAccessor<T> delegate;
14601460
private final PersistentPropertyTranslator propertyTranslator;
@@ -1485,23 +1485,6 @@ public T getBean() {
14851485
return delegate.getBean();
14861486
}
14871487

1488-
@Override
1489-
public void setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, Object value,
1490-
AccessOptions.SetOptions options) {
1491-
throw new UnsupportedOperationException();
1492-
}
1493-
1494-
@Override
1495-
public Object getProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path,
1496-
AccessOptions.GetOptions context) {
1497-
throw new UnsupportedOperationException();
1498-
}
1499-
1500-
@Override
1501-
public void setProperty(PersistentPropertyPath<? extends PersistentProperty<?>> path, Object value) {
1502-
throw new UnsupportedOperationException();
1503-
}
1504-
15051488
private CassandraPersistentProperty translate(PersistentProperty<?> property) {
15061489
return propertyTranslator.translate((CassandraPersistentProperty) property);
15071490
}

0 commit comments

Comments
 (0)