All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jk.services.client.workflow.models.SystemModel Maven / Gradle / Ivy

There is a newer version: 7.0.0-M7
Show newest version
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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy