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

📄 pet.java

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

import java.util.HashSet;
import java.util.Set;

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

public class Pet implements java.io.Serializable {

	// Fields

	private String id;
	private Petowner petowner;
	private String name;
	private String type;
	private String birthday;
	private String djtime;
	private String state;
	private Set pens = new HashSet(0);
	private Set appointments = new HashSet(0);
	private Set examinations = new HashSet(0);
	private Set invoices = new HashSet(0);

	// Constructors

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

	/** full constructor */
	public Pet(Petowner petowner, String name, String type, String birthday,
			String djtime, String state, Set pens, Set appointments,
			Set examinations, Set invoices) {
		this.petowner = petowner;
		this.name = name;
		this.type = type;
		this.birthday = birthday;
		this.djtime = djtime;
		this.state = state;
		this.pens = pens;
		this.appointments = appointments;
		this.examinations = examinations;
		this.invoices = invoices;
	}

	// Property accessors

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

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

	public Petowner getPetowner() {
		return this.petowner;
	}

	public void setPetowner(Petowner petowner) {
		this.petowner = petowner;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getBirthday() {
		return this.birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getDjtime() {
		return this.djtime;
	}

	public void setDjtime(String djtime) {
		this.djtime = djtime;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Set getPens() {
		return this.pens;
	}

	public void setPens(Set pens) {
		this.pens = pens;
	}

	public Set getAppointments() {
		return this.appointments;
	}

	public void setAppointments(Set appointments) {
		this.appointments = appointments;
	}

	public Set getExaminations() {
		return this.examinations;
	}

	public void setExaminations(Set examinations) {
		this.examinations = examinations;
	}

	public Set getInvoices() {
		return this.invoices;
	}

	public void setInvoices(Set invoices) {
		this.invoices = invoices;
	}

}

⌨️ 快捷键说明

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