Notice
Recent Posts
Recent Comments
Link
목록springboot (1)
algoqna

계층형 카테고리를 구현한 내용을 정리합니다. 카테고리 Entity의 모습은 다음과 같습니다. @Entity @Getter @NoArgsConstructor(access = AccessLevel.PROTECTED) public class Category { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "category_id") private Long id; @Column(name = "category_name", unique = true) private String name; private int depth; @OneToMany(mappedBy = "category", cascade = CascadeType.ALL) priv..
개발이야기
2024. 2. 29. 23:51