Skip to content

Commit

Permalink
refactor: @builder 원상 복구
Browse files Browse the repository at this point in the history
  • Loading branch information
9898s committed Nov 8, 2023
1 parent 00a9fcd commit 2fddb4a
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import lombok.Builder;
import lombok.Getter;

@Entity
Expand All @@ -24,5 +25,14 @@ public class Hashtag {
private String name;

@OneToMany(mappedBy = "hashtag", orphanRemoval = true)
private List<PostHashtag> postHashtagList = new ArrayList<>();
private final List<PostHashtag> postHashtagList = new ArrayList<>();

@Builder
public Hashtag(String name) {
this.name = name;
}

public Hashtag() {

}
}

0 comments on commit 2fddb4a

Please sign in to comment.