Foreign Key not Getting automatically generated in child table
I have two entities where the primary key of first entity is the foreign key of the second. When I save the parent, my foreign key is not set, so I want to know why it is not being set automatically. Parent Entity ExcpType.java @Getter @Setter @Entity @Table(name = "mst_excp_type") public class ExcpType implements Serializable