| Column | Column |
|---|---|
| @TableGenerator | Uses table generator strategy for automatic id creation |
| @GeneratedValue | Specifies that the value applied to fields is a generated value |
| @Id | Annotates the field as identifier |
| @ManyToOne | Specifies Many to One relationship between Employee and Department. This annotation is marked on many side. i.e. Multiple employees belong to a single department. So Department is annotated with @ManyToOne in Employee entity. |
| @JoinColumn | Specifies database table column which stores foreign key for related entity |