package com.sandjelkovic.dispatchd.api.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * Created by stefan on 21.1.17..
 */

@Data
@RequiredArgsConstructor
@AllArgsConstructor
public class RelationDto {
	private Long id;
	private Integer order;

	public RelationDto id(final Long id) {
		this.id = id;
		return this;
	}

	public RelationDto order(final Integer order) {
		this.order = order;
		return this;
	}

}

@@ -267,17 +267,23 @@
 te Long 
-i
+targetI
 d;%0A%09priv
@@ -286,23 +286,43 @@
 private 
-Integer
+Long sourceId;%0A%09private int
  order;%0A
@@ -369,17 +369,23 @@
 %0A%09%09this.
-i
+targetI
 d = id;%0A
@@ -439,15 +439,11 @@
 nal 
-I
+i
 nt
-eger
  ord
@@ -489,10 +489,109 @@
 is;%0A%09%7D%0A%0A
+%09public RelationDto sourceId(final Long sourceId) %7B%0A%09%09this.sourceId = sourceId;%0A%09%09return this;%0A%09%7D%0A%0A
 %7D%0A

Insert source id in Relation