⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pettreatmentid.java

📁 用Struts+hibernate写的宠物医院
💻 JAVA
字号:
package com.sean.pet.hibernate.po;

/**
 * PettreatmentId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class PettreatmentId implements java.io.Serializable {

	// Fields

	private Examination examination;
	private Treatment treatment;

	// Constructors

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

	/** full constructor */
	public PettreatmentId(Examination examination, Treatment treatment) {
		this.examination = examination;
		this.treatment = treatment;
	}

	// Property accessors

	public Examination getExamination() {
		return this.examination;
	}

	public void setExamination(Examination examination) {
		this.examination = examination;
	}

	public Treatment getTreatment() {
		return this.treatment;
	}

	public void setTreatment(Treatment treatment) {
		this.treatment = treatment;
	}

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

		return ((this.getExamination() == castOther.getExamination()) || (this
				.getExamination() != null
				&& castOther.getExamination() != null && this.getExamination()
				.equals(castOther.getExamination())))
				&& ((this.getTreatment() == castOther.getTreatment()) || (this
						.getTreatment() != null
						&& castOther.getTreatment() != null && this
						.getTreatment().equals(castOther.getTreatment())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -