blob: b4ab4d7345d30cbafab16152a894b9b893fbac66 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
package com.mavlushechka.studentdatabase.domain;
import org.bson.types.Binary;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "students")
public class Student {
@Id
private String id;
private String diploma;
private long telephoneNumber;
private String religion;
private String car;
private String house;
private Binary photo;
private String encodedPhoto;
public Student() {
}
public Student(String id, String diploma, long telephoneNumber, String religion, String car, String house, Binary photo) {
this.id = id;
this.diploma = diploma;
this.telephoneNumber = telephoneNumber;
this.religion = religion;
this.car = car;
this.house = house;
this.photo = photo;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getDiploma() {
return diploma;
}
public void setDiploma(String diploma) {
this.diploma = diploma;
}
public long getTelephoneNumber() {
return telephoneNumber;
}
public void setTelephoneNumber(long telephoneNumber) {
this.telephoneNumber = telephoneNumber;
}
public String getReligion() {
return religion;
}
public void setReligion(String religion) {
this.religion = religion;
}
public String getCar() {
return car;
}
public void setCar(String car) {
this.car = car;
}
public String getHouse() {
return house;
}
public void setHouse(String house) {
this.house = house;
}
public Binary getPhoto() {
return photo;
}
public void setPhoto(Binary photo) {
this.photo = photo;
}
public String getEncodedPhoto() {
return encodedPhoto;
}
public void setEncodedPhoto(String encodedPhoto) {
this.encodedPhoto = encodedPhoto;
}
}
|