개발/일지

JPA와 Lombok 사용 시 주의 사항

Zziny 2022. 12. 26. 18:01

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.

 

참고