package project.db.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * FwJobFileId generated by hbm2java
 */
@Embeddable
public class FwJobFileId implements java.io.Serializable {

	private long jobSeq;
	private int batSeq;
	private int fileSeq;

	public FwJobFileId() {
	}

	public FwJobFileId(long jobSeq, int batSeq, int fileSeq) {
		this.jobSeq = jobSeq;
		this.batSeq = batSeq;
		this.fileSeq = fileSeq;
	}

	@Column(name = "job_seq", nullable = false)
	public long getJobSeq() {
		return this.jobSeq;
	}

	public void setJobSeq(long jobSeq) {
		this.jobSeq = jobSeq;
	}

	@Column(name = "bat_seq", nullable = false)
	public int getBatSeq() {
		return this.batSeq;
	}

	public void setBatSeq(int batSeq) {
		this.batSeq = batSeq;
	}

	@Column(name = "file_seq", nullable = false)
	public int getFileSeq() {
		return this.fileSeq;
	}

	public void setFileSeq(int fileSeq) {
		this.fileSeq = fileSeq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof FwJobFileId))
			return false;
		FwJobFileId castOther = (FwJobFileId) other;

		return (this.getJobSeq() == castOther.getJobSeq())
				&& (this.getBatSeq() == castOther.getBatSeq())
				&& (this.getFileSeq() == castOther.getFileSeq());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (int) this.getJobSeq();
		result = 37 * result + this.getBatSeq();
		result = 37 * result + this.getFileSeq();
		return result;
	}

}
