1 | public class ContractVariation implements Serializable {↵ | | 1 | public class ↵
|
2 | ↵ | | 2 | Task {↵
|
3 | private int version;↵ | | 3 | private ↵
|
4 | private Contract contract;↵ | | |
|
5 | private String text↵ | | 4 | String description;↵
|
| | | 5 | private Person person;↵
|
6 | ;↵ | | 6 | private int version;↵
|
| | | 7 | ↵
|
7 | public Contract getContract() {↵ | | 8 | public int getVersion() {↵
|
8 | return contract;↵ | | 9 | return version;↵
|
9 | }↵ | | 10 | }↵
|
|
10 | public void setContract(Contract contract) {↵ | | 11 | public void set↵
|
11 | this.contract = contract;↵ | | |
|
12 | }↵ | | |
|
| | | 12 | Version(int version) {↵
|
| | | 13 | this.version = version;↵
|
| | | 14 | }↵
|
| | | 15 | Task() {}↵
|
13 | public String getText() {↵ | | 16 | public Task(String ↵
|
14 | return text;↵ | | |
|
15 | }↵ | | |
|
|
16 | public void setText(String text) {↵ | | |
|
17 | this.text = text↵ | | 17 | description, Person person) {↵
|
| | | 18 | this.description = description;↵
|
| | | 19 | this.person = person;↵
|
18 | ;↵ | | 20 | person.getTasks().add(this);↵
|
19 | }↵ | | 21 | }↵
|
|
20 | public int getVersion() {↵ | | 22 | public String getDescription() {↵
|
21 | return version;↵ | | 23 | return description;↵
|
22 | }↵ | | 24 | }↵
|
|
23 | public void setVersion(int version) {↵ | | 25 | public void setDescription(String description) {↵
|
24 | this.version = version;↵ | | 26 | this.description = description;↵
|
25 | }↵ | | 27 | }↵
|
|
26 | public ContractVariation() {↵ | | 28 | public ↵
|
27 | super()↵ | | 29 | Person getPerson() {↵
|
28 | ;↵ | | 30 | return person;↵
|
29 | }↵ | | 31 | }↵
|
|
30 | public ContractVariation(int version, Contract contract) {↵ | | 32 | public void setPerson(Person↵
|
31 | this.contract = contract;↵ | | |
|
32 | this.v↵ | | 33 | person) {↵
|
33 | ersion = version;↵ | | 34 | this.person = person
|
34 | contract.getVariations().add(this) | | | |