com.jk.services.client.workflow.models.SystemModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jk-framework-service-client Show documentation
Show all versions of jk-framework-service-client Show documentation
A simple API to call Microservices from Java
package com.jk.services.client.workflow.models;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
public class SystemModel {
private Integer id;
private String name;
private String code;
private String description;
public SystemModel withId(Integer id) {
this.id = id;
return this;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getId() {
return this.id;
}
public SystemModel withName(String name) {
this.name = name;
return this;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
public SystemModel withCode(String code) {
this.code = code;
return this;
}
public void setCode(String code) {
this.code = code;
}
public String getCode() {
return this.code;
}
public SystemModel withDescription(String description) {
this.description = description;
return this;
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return this.description;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
return this.getId().equals(((SystemModel) obj).getId());
}
@Override
public int hashCode() {
if (this.id == null) {
return toString().hashCode();
}
return this.id.hashCode();
}
@Override
public String toString() {
StringBuffer buf = new StringBuffer();
buf.append(this.id).append(",");
buf.append(this.name).append(",");
buf.append(this.code).append(",");
buf.append(this.description).append(",");
return buf.toString();
}
}