forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmployment.cs
70 lines (60 loc) · 1.26 KB
/
Employment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
namespace NHibernate.Test.SqlTest
{
public class Employment
{
private long employmentId;
private Person employee;
private Organization employer;
private DateTime startDate;
private DateTime 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 = DateTime.Today;
this.regionCode = regionCode;
employer.Employments.Add(this);
}
public virtual Person Employee
{
get { return employee; }
set { employee = value; }
}
public virtual Organization Employer
{
get { return employer; }
set { employer = value; }
}
public virtual DateTime StartDate
{
get { return startDate; }
set { startDate = value; }
}
public virtual DateTime EndDate
{
get { return endDate; }
set { endDate = value; }
}
public virtual string RegionCode
{
get { return regionCode; }
set { regionCode = value; }
}
public virtual MonetaryAmount Salary
{
get { return salary; }
set { salary = value; }
}
public virtual long EmploymentId
{
get { return employmentId; }
set { employmentId = value; }
}
}
}