FileDocCategorySizeDatePackage
Employment.javaAPI DocHibernate 3.2.52229Tue May 08 16:56:00 BST 2007org.hibernate.test.sql.hand

Employment

public class Employment extends Object
author
Gavin King

Fields Summary
private long
employmentId
private Person
employee
private Organization
employer
private Date
startDate
private Date
endDate
private String
regionCode
private MonetaryAmount
salary
Constructors Summary
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);
	
Methods Summary
public PersongetEmployee()

return
Returns the employee.

		return employee;
	
public OrganizationgetEmployer()

return
Returns the employer.

		return employer;
	
public longgetEmploymentId()

return
Returns the id.

		return employmentId;
	
public java.util.DategetEndDate()

return
Returns the endDate.

		return endDate;
	
public java.lang.StringgetRegionCode()

return
Returns the regionCode.

		return regionCode;
	
public MonetaryAmountgetSalary()

		return salary;
	
public java.util.DategetStartDate()

return
Returns the startDate.

		return startDate;
	
public voidsetEmployee(Person employee)

param
employee The employee to set.

		this.employee = employee;
	
public voidsetEmployer(Organization employer)

param
employer The employer to set.

		this.employer = employer;
	
public voidsetEmploymentId(long id)

param
id The id to set.

		this.employmentId = id;
	
public voidsetEndDate(java.util.Date endDate)

param
endDate The endDate to set.

		this.endDate = endDate;
	
public voidsetRegionCode(java.lang.String regionCode)

param
regionCode The regionCode to set.

		this.regionCode = regionCode;
	
public voidsetSalary(MonetaryAmount salary)

		this.salary = salary;
	
public voidsetStartDate(java.util.Date startDate)

param
startDate The startDate to set.

		this.startDate = startDate;