Postgresql – insert or update on table violates foreign key constraint, key is not present in table
I'm trying to insert an entry into my database with a one-to-one relationship to another entity. I'm using spring data jpa and postgres. My code looks as follows: @MappedSuperclass @Getter @Setter @ToString public abstract class Post { @Id @GeneratedValue private…