Skip to content

Commit 8aeb027

Browse files
committed
Remove duplicate declaration of get RowDocument
1 parent 21e8d9a commit 8aeb027

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/MappingRelationalConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ protected <S> S readAggregate(ConversionContext context, RowDocumentAccessor doc
346346
}
347347

348348
if (RowDocument.class.isAssignableFrom(rawType)) {
349-
return (S) documentAccessor.document();
349+
return (S) documentAccessor.getDocument();
350350
}
351351

352352
if (typeHint.isMap()) {
@@ -1151,7 +1151,7 @@ public boolean hasValue(RelationalPersistentProperty property) {
11511151
@Override
11521152
public Object getValue(AggregatePath path) {
11531153

1154-
Object value = accessor.document().get(path.getColumnInfo().alias().getReference());
1154+
Object value = accessor.getDocument().get(path.getColumnInfo().alias().getReference());
11551155

11561156
if (value == null) {
11571157
return null;
@@ -1162,12 +1162,12 @@ public Object getValue(AggregatePath path) {
11621162

11631163
@Override
11641164
public boolean hasValue(AggregatePath path) {
1165-
return accessor.document().get(path.getColumnInfo().alias().getReference()) != null;
1165+
return accessor.getDocument().get(path.getColumnInfo().alias().getReference()) != null;
11661166
}
11671167

11681168
@Override
11691169
public boolean hasValue(SqlIdentifier identifier) {
1170-
return accessor().document().get(identifier.getReference()) != null;
1170+
return accessor().getDocument().get(identifier.getReference()) != null;
11711171
}
11721172

11731173
@Override

spring-data-relational/src/main/java/org/springframework/data/relational/core/conversion/RowDocumentAccessor.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* a {@link RelationalPersistentProperty} might refer to through a path expression in field names.
2929
*
3030
* @author Mark Paluch
31+
* @author Chanhyeong Cho
3132
* @since 3.2
3233
*/
3334
public class RowDocumentAccessor {
@@ -110,10 +111,6 @@ String getColumnName(RelationalPersistentProperty prop) {
110111
return prop.getColumnName().getReference();
111112
}
112113

113-
public RowDocument document() {
114-
return document;
115-
}
116-
117114
@Override
118115
public boolean equals(Object obj) {
119116
if (obj == this)

0 commit comments

Comments
 (0)