/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-model
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 
 
package com.epam.ta.reportportal.ws.model.issue;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;

/**
 * Test item issue with provided it
 * 
 * @author Dzianis Shlychkou
 * 
 */
@JsonInclude(Include.NON_NULL)
public class IssueDefinition {

	@NotNull
	@JsonProperty(value = "test_item_id", required = true)
	@ApiModelProperty(required = true)
	private String id;

	@NotNull
	@Valid
	@JsonProperty(value = "issue", required = true)
	private Issue issue;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Issue getIssue() {
		return issue;
	}

	public void setIssue(Issue issue) {
		this.issue = issue;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("IssueDefinition{");
		sb.append("id='").append(id).append('\'');
		sb.append(", issue=").append(issue);
		sb.append('}');
		return sb.toString();
	}
}
@@ -844,85 +844,8 @@
 e;%0A%0A
-import javax.validation.Valid;%0Aimport javax.validation.constraints.NotNull;%0A%0A
 impo
@@ -1057,16 +1057,93 @@
 perty;%0A%0A
+import javax.validation.Valid;%0Aimport javax.validation.constraints.NotNull;%0A%0A
 /**%0A * T
@@ -1389,20 +1389,18 @@
 private 
-Stri
+Lo
 ng id;%0A%0A
@@ -1497,20 +1497,18 @@
 %09public 
-Stri
+Lo
 ng getId
@@ -1548,20 +1548,18 @@
 d setId(
-Stri
+Lo
 ng id) %7B
@@ -1734,196 +1734,73 @@
 %7B%0A%09%09
-final StringBuilder sb = new StringBuilder(%22IssueDefinition%7B%22);%0A%09%09sb.append(%22id='%22).append(id).append('%5C'');%0A%09%09sb.append(%22, issue=%22).append(issue);%0A%09%09sb.append('%7D');%0A%09%09return sb.toString()
+return %22IssueDefinition%7B%22 + %22id=%22 + id + %22, issue=%22 + issue + '%7D'
 ;%0A%09%7D

replace id type