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

📄 employment.java

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 JAVA
字号:
//$Id: Employment.java 11486 2007-05-08 21:57:24Z steve.ebersole@jboss.com $package org.hibernate.test.sql.hand;import java.util.Date;/** * @author Gavin King */public class Employment {	private long employmentId;	private Person employee;	private Organization employer;	private Date startDate;	private Date endDate;	private String regionCode;	private MonetaryAmount salary;		public Employment() {}	public Employment(Person employee, Organization employer, String regionCode) {		this.employee = employee;		this.employer = employer;		this.startDate = new Date();		this.regionCode = regionCode;		employer.getEmployments().add(this);	}	/**	 * @return Returns the employee.	 */	public Person getEmployee() {		return employee;	}	/**	 * @param employee The employee to set.	 */	public void setEmployee(Person employee) {		this.employee = employee;	}	/**	 * @return Returns the employer.	 */	public Organization getEmployer() {		return employer;	}	/**	 * @param employer The employer to set.	 */	public void setEmployer(Organization employer) {		this.employer = employer;	}	/**	 * @return Returns the endDate.	 */	public Date getEndDate() {		return endDate;	}	/**	 * @param endDate The endDate to set.	 */	public void setEndDate(Date endDate) {		this.endDate = endDate;	}	/**	 * @return Returns the id.	 */	public long getEmploymentId() {		return employmentId;	}	/**	 * @param id The id to set.	 */	public void setEmploymentId(long id) {		this.employmentId = id;	}	/**	 * @return Returns the startDate.	 */	public Date getStartDate() {		return startDate;	}	/**	 * @param startDate The startDate to set.	 */	public void setStartDate(Date startDate) {		this.startDate = startDate;	}	/**	 * @return Returns the regionCode.	 */	public String getRegionCode() {		return regionCode;	}	/**	 * @param regionCode The regionCode to set.	 */	public void setRegionCode(String regionCode) {		this.regionCode = regionCode;	}		public MonetaryAmount getSalary() {		return salary;	}		public void setSalary(MonetaryAmount salary) {		this.salary = salary;	}}

⌨️ 快捷键说明

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