package com.example.salonbella.entity; import javax.persistence.*; @Entity @Table(name = "products") public class ProductEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(name = "name", nullable = false, length = 50) private String name; @Column(name = "description", nullable = false, length = 60) private String description; @Column(name = "category", nullable = false, length = 50) private String category; @Column(name = "price", nullable = false, length = 50) private double price; @Lob private byte[] content; private String base64; public String getBase64() { return base64; } public void setBase64(String base64) { this.base64 = base64; } public byte[] getContent() { return content; } public void setContent(byte[] content) { this.content = content; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }