appointment.java

来自「用Struts+hibernate写的宠物医院」· Java 代码 · 共 57 行

JAVA
57
字号
package com.sean.pet.hibernate.po;

import java.util.Date;

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

public class Appointment implements java.io.Serializable {

	// Fields

	private String id;
	private Pet pet;
	private Date time;

	// Constructors

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

	/** full constructor */
	public Appointment(Pet pet, Date time) {
		this.pet = pet;
		this.time = time;
	}

	// Property accessors

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

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

	public Pet getPet() {
		return this.pet;
	}

	public void setPet(Pet pet) {
		this.pet = pet;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

}

⌨️ 快捷键说明

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