상세 컨텐츠

본문 제목

임베디드 타입이 DB 테이블 중 어떤 컬럼과 매핑되는지 알 수 없어서 생기는 문제

본문

Caused by: jakarta.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Column 'id' is duplicated in mapping for entity 'com.simplecommerce.payment.entity.Payment' (use '@Column(insertable=false, updatable=false)' when mapping multiple properties to the same column)
 
 
https://otrodevym.tistory.com/entry/JPA-Unable-to-build-Hibernate-SessionFactory-nested-exception-is-orghibernateMappingException-Repeated-column-in-mapping-for-entity

[JPA]  Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Repeated column in mapping

상황 임베디드 타입을 하나의 객체에서 여러개 등록한 상황입니다. 문제 파악 Money라는 임베디드 타입이 DB 테이블 중 어떤 컬럼과 매핑되는지 알 수 없어서 생기는 문제입니다. 해결 방법 @Attribu

otrodevym.tistory.com

관련글 더보기

댓글 영역