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