Skip to content

Commit df85724

Browse files
author
Mark
committed
BaseEdgeDocument: added constructor (from, to)
1 parent a032439 commit df85724

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ public BaseEdgeDocument() {
4141
super();
4242
}
4343

44+
public BaseEdgeDocument(final String from, final String to) {
45+
super();
46+
this.from = from;
47+
this.to = to;
48+
}
49+
4450
public BaseEdgeDocument(final Map<String, Object> properties) {
4551
super(properties);
4652
final Object tmpFrom = properties.remove(DocumentField.Type.FROM.getSerializeName());

0 commit comments

Comments
 (0)