employment.java

来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 108 行

JAVA
108
字号
//$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 + =
减小字号Ctrl + -
显示快捷键?