til
til copied to clipboard
Lombok + Hibernate 주의사항
https://thorben-janssen.com/lombok-hibernate-how-to-avoid-common-pitfalls/#Avoid_Data https://jojoldu.tistory.com/536 Dirty checking
Hibernate 더티 체킹시에 스냅샷과 엔티티를 비교할 때 엔티티의 equals 를 사용하지는 않는다. 대신 각각의 필드를 equals를 사용해서 비교하는데, 이때 불변 객체가 아닌 가변객체는 equals 를 구현해야 한다.