Skip to content

Commit 1a24c3c

Browse files
committed
Adapt to changed PersistentProperty interface.
Closes #2682
1 parent 9adc4d2 commit 1a24c3c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/main/java/org/springframework/data/elasticsearch/core/mapping/ElasticsearchPersistentProperty.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,6 @@ public interface ElasticsearchPersistentProperty extends PersistentProperty<Elas
6666
@Nullable
6767
PropertyValueConverter getPropertyValueConverter();
6868

69-
/**
70-
* Returns true if the property may be read from the store into the entity.
71-
*
72-
* @return true if readable, false otherwise
73-
* @since 4.0
74-
*/
75-
boolean isReadable();
76-
7769
/**
7870
* @return {@literal true} if null values should be stored in Elasticsearch
7971
* @since 4.1

src/main/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public boolean isWritable() {
129129

130130
@Override
131131
public boolean isReadable() {
132-
return !isTransient() && !isSeqNoPrimaryTermProperty() && !isAnnotationPresent(WriteOnlyProperty.class);
132+
return super.isReadable() && !isAnnotationPresent(WriteOnlyProperty.class);
133133
}
134134

135135
@Override

0 commit comments

Comments
 (0)