summaryrefslogtreecommitdiff
path: root/src/main/java/com/mavlushechka/studentdatabase/domain/Family.java
blob: 653c66f3ae552424f158962b1a56afe9551b5989 (plain)
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
package com.mavlushechka.studentdatabase.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "families")
public class Family {
    @Id
    private String id;
    private String parentsDivorced;
    private boolean isMarried;
    private Parent father;
    private Parent mother;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentsDivorced() {
        return parentsDivorced;
    }

    public void setParentsDivorced(String parentsDivorced) {
        this.parentsDivorced = parentsDivorced;
    }

    public boolean isMarried() {
        return isMarried;
    }

    public void setMarried(boolean married) {
        isMarried = married;
    }

    public Parent getFather() {
        return father;
    }

    public void setFather(Parent father) {
        this.father = father;
    }

    public Parent getMother() {
        return mother;
    }

    public void setMother(Parent mother) {
        this.mother = mother;
    }
}