When working with JPA and Lombok, remember these rules:
- Avoid using @EqualsAndHashCode and @Data with JPA entities;
- Always exclude lazy attributes when using @ToString;
- Don’t forget to add @NoArgsConstructor to entities with @Builder or @AllArgsConstructor.
참고
'개발 > 일지' 카테고리의 다른 글
Java Bean Validation (0) | 2023.01.11 |
---|---|
JPA Entity 작성 시 - @Setter 사용 X (0) | 2022.12.26 |
[오류] mvnw package 중 오류 - formatting (0) | 2022.12.24 |
[오류] DB 관련 오류 - 컬럼 (0) | 2022.12.24 |
[오류 처리] Java Version 호환성 관련 문제 (0) | 2022.12.22 |