Skip to content

Commit

Permalink
fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
a-oselkov committed Mar 13, 2024
1 parent 1f90865 commit 8a51a58
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
9 changes: 8 additions & 1 deletion src/main/java/hexlet/code/model/Label.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
21 changes: 18 additions & 3 deletions src/main/java/hexlet/code/model/Task.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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<Label> labels;
Expand Down

0 comments on commit 8a51a58

Please sign in to comment.