Skip to content

Commit 3cf8b9c

Browse files
author
a-brandt
committed
added toString()
1 parent 54b692e commit 3cf8b9c

File tree

5 files changed

+605
-540
lines changed

5 files changed

+605
-540
lines changed

src/main/java/com/arangodb/entity/BaseDocument.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ public Object getAttribute(String key) {
215215
return this.properties.get(key);
216216
}
217217

218+
@Override
219+
public String toString() {
220+
return "BaseDocument [documentRevision=" + documentRevision + ", documentHandle=" + documentHandle
221+
+ ", documentKey=" + documentKey + ", properties=" + properties + "]";
222+
}
223+
218224
// /**
219225
// * check the list if it is suitable
220226
// *
@@ -233,4 +239,5 @@ public Object getAttribute(String key) {
233239
// }
234240
// return true;
235241
// }
242+
236243
}

src/main/java/com/arangodb/entity/BaseEntity.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,11 @@ public String getRequestId() {
159159
public void setRequestId(String requestId) {
160160
this.requestId = requestId;
161161
}
162+
163+
@Override
164+
public String toString() {
165+
return "BaseEntity [error=" + error + ", code=" + code + ", errorNumber=" + errorNumber + ", errorMessage="
166+
+ errorMessage + ", statusCode=" + statusCode + ", etag=" + etag + ", requestId=" + requestId + "]";
167+
}
168+
162169
}

0 commit comments

Comments
 (0)