I have two class Employee and Email with relational OneToMany & ManyToOne.

How to create / generate with JPA table, foreignkey column ex:(email\_id) at Employee table ?

[this is image ERD Table Employee(OneToMany) & Email](https://i.stack.imgur.com/yQIA8.png)

```
@Entity
@Data
public class Employee {
@Id
private Long id;
private String name;
private String address;
@OneToMany
private List<Email> emailList;
}

@Entity
@Data
public class Email {
@Id
private Long id;
private String email;
@ManyToOne
private Employee employee;
}

```