diff --git a/pom.xml b/pom.xml
index b242b23..52178b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,12 +49,7 @@
org.postgresql
postgresql
-
- jakarta.validation
- jakarta.validation-api
- 2.0.2
-
-
+
diff --git a/src/main/java/com/example/blog/model/Post.java b/src/main/java/com/example/blog/model/Post.java
index 2c34d77..b2511b0 100644
--- a/src/main/java/com/example/blog/model/Post.java
+++ b/src/main/java/com/example/blog/model/Post.java
@@ -3,19 +3,17 @@
package com.example.blog.model;
import javax.persistence.Entity;
-import javax.validation.constraints.NotBlank;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
+import java.util.Objects;
@Entity
public class Post {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
- @NotBlank(message = "Title cannot be empty.")
private String title;
- @NotBlank(message = "Body cannot be empty.")
private String body;
private int views;