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

📄 department.java

📁 白广元写的java web整合开发完全自学手册的源代码
💻 JAVA
字号:
package hibernate3.object;

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

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

public class Department implements java.io.Serializable {

	// Fields

	private Integer partId;
	private String name;
	private Set employees = new HashSet();

	// Constructors

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

	/** full constructor */
	public Department(String name) {
		this.name = name;
	}

	// Property accessors

	public Integer getPartId() {
		return this.partId;
	}

	public void setPartId(Integer partId) {
		this.partId = partId;
	}

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

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

	/**
	 * @return the employees
	 */
	public Set getEmployees() {
		return employees;
	}

	/**
	 * @param employees the employees to set
	 */
	public void setEmployees(Set employees) {
		this.employees = employees;
	}
	
	public String toString(){
		return "Department:["+name+"]";
		
	}

}

⌨️ 快捷键说明

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