Skip to content

Commit

Permalink
edit lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
a-oselkov committed Apr 25, 2024
1 parent 30381ab commit 41c950d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/main/java/hexlet/code/model/Label.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.CreationTimestamp;

import java.util.Date;

import static jakarta.persistence.TemporalType.TIMESTAMP;

@Builder
@Data
@Getter
@Setter
@EqualsAndHashCode(exclude = "id")
@NoArgsConstructor
@AllArgsConstructor
@Entity
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/hexlet/code/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.CreationTimestamp;

import java.util.Date;
Expand All @@ -21,7 +23,9 @@
import static jakarta.persistence.TemporalType.TIMESTAMP;

@Builder
@Data
@Getter
@Setter
@EqualsAndHashCode(exclude = "id")
@NoArgsConstructor
@AllArgsConstructor
@Entity
Expand Down

0 comments on commit 41c950d

Please sign in to comment.