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 = "testimonials") public class Testimonial { @Id private String id; private String name; private String comment; private Binary photo; private String encodedPhoto; public Testimonial() { } public Testimonial(String name, String comment, Binary photo) { this.name = name; this.comment = comment; this.photo = photo; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } 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; } }