-
Notifications
You must be signed in to change notification settings - Fork 10
/
ImmigrationDetails.java
55 lines (49 loc) · 1.64 KB
/
ImmigrationDetails.java
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.tutorialq.entities;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ImmigrationDetails implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "DOCUMENT_UPLOAD_ID", unique = true, nullable = false)
private long immiDetailsId;
private String currentStatus;
private String receiptNumber;
private String lcaNumber;
private BigDecimal currentWage;
@DateTimeFormat(pattern = "MM/dd/yyyy")
private LocalDate startDate;
@DateTimeFormat(pattern = "MM/dd/yyyy")
private LocalDate endDate;
private String dscComments;
private String greenCardStatus;
@DateTimeFormat(pattern = "MM/dd/yyyy")
private LocalDate gcStartDate;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "EMPLOYEE_ID", nullable = false)
@JsonIgnore
private Employee employee;
//Audit Information
@DateTimeFormat(pattern = "MM/dd/yyyy HH:mm:ss")
private LocalDateTime dateCreated;
@DateTimeFormat(pattern = "MM/dd/yyyy HH:mm:ss")
private LocalDateTime dateLastModified;
@DateTimeFormat(pattern = "MM/dd/yyyy HH:mm:ss")
private LocalDate dateApproved;
private String nameCreated;
private String nameLastModified;
private String nameApproved;
}