์๋ฒ ๋๋ ํ์ ์ด 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
