Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] 기존의 HashSet 을 LinkedHashSet 으로 변경 #518

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@
import jakarta.persistence.ManyToOne;
import jakarta.persistence.OneToMany;
import jakarta.persistence.PrePersist;
import java.time.LocalDateTime;
import java.util.LinkedHashSet;
import java.util.Set;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.ColumnDefault;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

@Entity
@NoArgsConstructor(access = PROTECTED)
@Getter
Expand All @@ -47,13 +46,13 @@ public class Topic extends BaseTimeEntity {
private Member creator;

@OneToMany(mappedBy = "topic")
private Set<Permission> permissions = new HashSet<>();
private Set<Permission> permissions = new LinkedHashSet<>();

@OneToMany(mappedBy = "topic", cascade = CascadeType.PERSIST)
private Set<Pin> pins = new HashSet<>();
private Set<Pin> pins = new LinkedHashSet<>();

@OneToMany(mappedBy = "topic", cascade = CascadeType.PERSIST, orphanRemoval = true)
private Set<Bookmark> bookmarks = new HashSet<>();
private Set<Bookmark> bookmarks = new LinkedHashSet<>();

@Column(nullable = false)
@ColumnDefault(value = "0")
Expand Down
Loading