[Java] JPA Detached Entity passed to persist 에러 해결 로그
오늘은 간단하게 JPA에서 연관관계에 있는 엔티티를 입력받으려 할 떄 에러가 난 증상을 간단히 기술해보고자 합니다. 케이스는 아래와 같습니다. A class @Entity @Data ... public class Aclass { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private String col1; private String col2; private String col3; private LocalDateTime createdAt; } B class @Entity @Data ... public class Bclass { @Id @GeneratedValue(strategy = GenerationType.ID..
Server
2022. 2. 14. 16:21
공지사항