@OneToOne 양방향 StackOverflowError : null 에러 해결
StackOverflowError : null JPA에서 @OneToOne 양방향 매핑을 사용하고 에러가 났었다. 에러 내용은 StackOverflowError : null 왜떴나 싶었더니 Entity 연관관계를 맺을때 내가 실수한 부분이 몇개 있었다. @OneToOne(mappedBy = "ParentEntity" , orphanRemoval = true, cascade = CascadeType.ALL, fetch = FetchType.LAZY, optional = false) private ChildEntity childEntity; 부모가 될 Entity 설정이고, @OneToOne(fetch = FetchType.EAGER) @JoinColum(name = "parentEntity_id") pri..