Foreign Key Hibernate Annotation

I can not manage to make this simple foreign key constraint work. @Entity @Table(name = “wheel”) @Data public class WheelEntity { @Id @Column(name = “id”) @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; … @Entity @Table(name = “bike”) @Data public class BikeEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @ManyToOne(targetEntity = WheelEntity.class, fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE}) … Continue reading “Foreign Key Hibernate Annotation”