project.java

来自「Hibernate中的映射例子」· Java 代码 · 共 74 行

JAVA
74
字号
package test.m2m.pojo;

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

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

public class Project implements java.io.Serializable {

	// Fields

	private Integer pid;
	private String pname;
	private String pdesc;
	private Set employees = new HashSet(0);

	// Constructors

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

	/** minimal constructor */
	public Project(Integer pid) {
		this.pid = pid;
	}

	/** full constructor */
	public Project(Integer pid, String pname, String pdesc, Set employees) {
		this.pid = pid;
		this.pname = pname;
		this.pdesc = pdesc;
		this.employees = employees;
	}

	// Property accessors

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getPdesc() {
		return this.pdesc;
	}

	public void setPdesc(String pdesc) {
		this.pdesc = pdesc;
	}

	public Set getEmployees() {
		return this.employees;
	}

	public void setEmployees(Set employees) {
		this.employees = employees;
	}

}

⌨️ 快捷键说明

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