package com.jeeww.core.syspojo;

// Generated 2014-12-9 13:25:18 by Hibernate Tools 4.0.0

/**
 * AgtbCodeCommentInfoId generated by hbm2java.
 */
public class AgtbCodeCommentInfoId implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private String codeId;
	private String id;

	public AgtbCodeCommentInfoId() {
	}

	public AgtbCodeCommentInfoId(String codeId, String id) {
		this.codeId = codeId;
		this.id = id;
	}

	public String getCodeId() {
		return this.codeId;
	}

	public void setCodeId(String codeId) {
		this.codeId = codeId;
	}

	public String getId() {
		return this.id;
	}

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

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

		return ((this.getCodeId() == castOther.getCodeId()) || (this.getCodeId() != null
				&& castOther.getCodeId() != null && this.getCodeId().equals(castOther.getCodeId())))
				&& ((this.getId() == castOther.getId()) || (this.getId() != null && castOther.getId() != null && this
						.getId().equals(castOther.getId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getCodeId() == null ? 0 : this.getCodeId().hashCode());
		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		return result;
	}

}
