Last active
June 14, 2020 13:40
-
-
Save Hafiz-SE/7755a7f86e4152016028a87bc72e18db to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name = AppTables.employee) | |
public class Employee { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
@Column(name = AppTables.employeeTable.id) | |
private long id; | |
@Column(name = AppTables.employeeTable.name) | |
private String name; | |
@ManyToOne(fetch = FetchType.EAGER) | |
@JoinColumn(name = AppTables.employeeTable.department) | |
private Department department; | |
// Getters and setters are omitted for brevity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment