could not execute statement; SQL [n/a]; constraint ["FKODNXQFC2TSP36OUGV7REUHXRP:
PUBLIC.SCHEDULE FOREIGN KEY(POST_ID)
REFERENCES PUBLIC.POST(ID) (CAST(1 AS BIGINT))"; SQL statement:
delete from post where id=? [23503-214]]; nested exception is
org.hibernate.exception.ConstraintViolationException:
could not execute statement
@OnDelete(action = OnDeleteAction.CASCADE)
참고)
https://ynzu-dev.tistory.com/m/entry/OnDelete-VS-cascade-CascadeTypeREMOVE