blob: 6aac94dd514235f5bde3cce3f76bc7a2afd2ccb1 (
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
|
package com.mavlushechka.barbershop.domain;
import org.bson.types.Binary;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "barbers")
public class Barber {
@Id
private String id;
private String firstName;
private Level level;
private Binary photo;
private String encodedPhoto;
public Barber() {
}
public Barber(String firstName, Level level, Binary photo) {
this.firstName = firstName;
this.level = level;
this.photo = photo;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public Level getLevel() {
return level;
}
public void setLevel(Level level) {
this.level = level;
}
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;
}
}
|