-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudyTimeTable.java
More file actions
executable file
·38 lines (33 loc) · 1.14 KB
/
StudyTimeTable.java
File metadata and controls
executable file
·38 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.example.demo.Entity;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Personnal {
@Data
@Entity
@Getter
@Setter
@ToString
@EqualsAndHashCode
@Table(name = "Personnel")
public class Personnel {
@Id
@SequenceGenerator(name="Personnel_seq",sequenceName="Personnel_seq")
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="Personnel_seq")
@Column(name="Personnel_ID",unique = true, nullable = true)
private @NonNull Long id;
private @NonNull String fname;
private @NonNull String Lname;
private @NonNull String nationality;
private @NonNull String educational;
private @NonNull String IdentificationNumber;
private @NonNull String job_id;
private @NonNull String phonenumber;
private @NonNull String E_mail;
private @NonNull String extraction;
}