package com.tarena.oss.dms;

import java.util.Date;

/**
 * DetailmonthsId generated by MyEclipse Persistence Tools
 */

public class DetailmonthsId implements java.io.Serializable {

	// Fields

	private String labip;

	private Date logouttime;

	// Constructors

	/** default constructor */
	public DetailmonthsId() {
	}

	/** full constructor */
	public DetailmonthsId(String labip, Date logouttime) {
		this.labip = labip;
		this.logouttime = logouttime;
	}

	// Property accessors

	public String getLabip() {
		return this.labip;
	}

	public void setLabip(String labip) {
		this.labip = labip;
	}

	public Date getLogouttime() {
		return this.logouttime;
	}

	public void setLogouttime(Date logouttime) {
		this.logouttime = logouttime;
	}

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

		return ((this.getLabip() == castOther.getLabip()) || (this.getLabip() != null
				&& castOther.getLabip() != null && this.getLabip().equals(
				castOther.getLabip())))
				&& ((this.getLogouttime() == castOther.getLogouttime()) || (this
						.getLogouttime() != null
						&& castOther.getLogouttime() != null && this
						.getLogouttime().equals(castOther.getLogouttime())));
	}

	public int hashCode() {
		int result = 17;

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

}