Postgresql – Spring Boot Data JPA Bidirectional Relationship – Foreign Key Is Null
I have been doing side spring-boot demo project about heroes and villains. Below is the Character class which is extended by Superhero and Villain classes: @Data @NoArgsConstructor @Entity @Table(name = "characters") @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")…