Open utterances-bot opened 1 year ago
if (o == null || o instanceof Team) { return false; }
o가 Team의 instance가 아닐 때 return false를 해야하는 게 아닌가요?
@Octoping925 네 맞습니다! 올라간 코드에 오류 사항이 있었습니다!
if (!(o instanceof Team)) {
return false;
}
로 이해해주시면 감사하겠습니다!
equals 정의시에 Hibernate.getClass() 를 사용하는것도 좋아보입니다!
JPA Hibernate 프록시 제대로 알고 쓰기
JPA…
https://tecoble.techcourse.co.kr/post/2022-10-17-jpa-hibernate-proxy/?utterances=6eca0723755a898ad784537d%2F491owWZrqN%2FFhZwi1kYvrI%2F2DDmoreC5iBMe7peQOeJxLU4%2BorbACSH%2FGmFRyuoi1rtkYxV8v8DOqni%2FGcIN4Npc8ur5UmPn43QTHR3N0BrS4S%2FFCVVma8AriY%3D