https://resilient-923.tistory.com/418
[Spring/Java] @Builder 패턴 사용시 @AllArgsConstructor를 사용하는 이유
현재 개발을 할 때, 일반적으로 Entity 객체를 생성하는 경우 Lombok 라이브러리를 사용해서 빌더 패턴을 적용하고 있습니다. Entity 클래스에 적용된 어노테이션 중 @Builder라는 어노테이션이 있는데
resilient-923.tistory.com
https://devlog-wjdrbs96.tistory.com/419
[Spring] @Builder를 사용할 때 고려해야 할 생성자 문제 알아보기
@Builder, @AllArgsConstructor 알아보기 이번 글에서는 @Builder, @AllArgsConstructor, @NoArgsConstructor 애노테이션을 사용할 때 알아야 할 점에 대해서 정리해보겠습니다. 위와 같이 @Builder, @NoArgsConstructor를 사용
devlog-wjdrbs96.tistory.com
'Spring > study for project' 카테고리의 다른 글
Spring GitHub CI/CD Docker (0) | 2024.11.18 |
---|---|
Lazy Initialize Proxy 에러 Fetch Join을 이용하여 해결하기 (OSIV, EAGER, 강제 초기화 지양하기) (0) | 2024.08.20 |
DTO (0) | 2024.07.29 |
@Valid @Validated (0) | 2024.07.29 |
@OneToMany(orphanRemoval = true) (0) | 2024.07.24 |