JPA에서 연관관계만 남기고 FK를 제거하려면 어떻게 하지?

Nest.JS에서 사용하던 방식 : https://jojoldu.tistory.com/605

결과

스프링에서는 foreignKey 옵션의 ConstraintMode.NO_CONSTRAINT 값을 적용하여 사용하면 된다.

@JoinColumns(    value = ...,    foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT))

출처: https://kim-solshar.tistory.com/70 [김솔샤르의 인사이트]

git pull origin main --allow-unrelated-histories