From 8a51a58b6bf0c015d189494378477516294362b5 Mon Sep 17 00:00:00 2001 From: a-oselkov Date: Wed, 13 Mar 2024 18:19:25 +0300 Subject: [PATCH] fix checkstyle errors --- src/main/java/hexlet/code/model/Label.java | 9 ++++++++- src/main/java/hexlet/code/model/Task.java | 21 ++++++++++++++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/main/java/hexlet/code/model/Label.java b/src/main/java/hexlet/code/model/Label.java index 734236c..66b275b 100644 --- a/src/main/java/hexlet/code/model/Label.java +++ b/src/main/java/hexlet/code/model/Label.java @@ -1,6 +1,13 @@ package hexlet.code.model; -import jakarta.persistence.*; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Builder; diff --git a/src/main/java/hexlet/code/model/Task.java b/src/main/java/hexlet/code/model/Task.java index 5b9434f..a3ae90b 100644 --- a/src/main/java/hexlet/code/model/Task.java +++ b/src/main/java/hexlet/code/model/Task.java @@ -1,8 +1,23 @@ package hexlet.code.model; -import jakarta.persistence.*; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.SequenceGenerator; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; import jakarta.validation.constraints.NotNull; -import lombok.*; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; import org.hibernate.annotations.CreationTimestamp; import java.util.Date; @@ -48,7 +63,7 @@ public class Task { @ManyToMany(fetch = FetchType.EAGER) @JoinTable(name = "task_label", - joinColumns = @JoinColumn(name = "task_id", referencedColumnName = "id"), + joinColumns = @JoinColumn(name = "task_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "label_id", referencedColumnName = "id") ) private List