From 0225bdb772d1334cc1aa7ab0fc3678df0864df6b Mon Sep 17 00:00:00 2001 From: AlisaLinUwU Date: Sun, 26 Jan 2025 10:42:28 +0500 Subject: Initialize --- .../barbershop/domain/Testimonial.java | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/main/java/com/mavlushechka/barbershop/domain/Testimonial.java (limited to 'src/main/java/com/mavlushechka/barbershop/domain/Testimonial.java') diff --git a/src/main/java/com/mavlushechka/barbershop/domain/Testimonial.java b/src/main/java/com/mavlushechka/barbershop/domain/Testimonial.java new file mode 100644 index 0000000..d0f88e4 --- /dev/null +++ b/src/main/java/com/mavlushechka/barbershop/domain/Testimonial.java @@ -0,0 +1,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 = "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; + } +} -- cgit v1.2.3