package project.db.model;

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

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

	private long jobSeq;
	private int batSeq;

	public FwJobDetailId() {
	}

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

	@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;
	}

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

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

	public int hashCode() {
		int result = 17;

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

}
