| 23509 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
|
|
2 |
|
|
|
3 |
import java.io.Serializable;
|
|
|
4 |
import java.time.LocalDateTime;
|
|
|
5 |
import java.time.format.DateTimeFormatter;
|
|
|
6 |
|
|
|
7 |
import javax.persistence.Column;
|
|
|
8 |
import javax.persistence.Convert;
|
|
|
9 |
import javax.persistence.Entity;
|
|
|
10 |
import javax.persistence.EnumType;
|
|
|
11 |
import javax.persistence.Enumerated;
|
|
|
12 |
import javax.persistence.Id;
|
|
|
13 |
import javax.persistence.Table;
|
|
|
14 |
|
|
|
15 |
import com.spice.profitmandi.common.enumuration.PurchaseReturnStatus;
|
|
|
16 |
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
|
|
|
17 |
|
|
|
18 |
/**
|
|
|
19 |
* This class basically contains api details
|
|
|
20 |
*
|
|
|
21 |
* @author ashikali
|
|
|
22 |
*
|
|
|
23 |
*/
|
|
|
24 |
@Entity
|
|
|
25 |
@Table(name="fofo.debit_note", schema = "fofo")
|
|
|
26 |
|
|
|
27 |
public class DebitNote implements Serializable{
|
|
|
28 |
|
|
|
29 |
public int getId() {
|
|
|
30 |
return id;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public void setId(int id) {
|
|
|
34 |
this.id = id;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public int getFofoId() {
|
|
|
38 |
return fofoId;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public void setFofoId(int fofoId) {
|
|
|
42 |
this.fofoId = fofoId;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
public String getDebitNoteNumber() {
|
|
|
46 |
return debitNoteNumber;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public void setDebitNoteNumber(String debitNoteNumber) {
|
|
|
50 |
this.debitNoteNumber = debitNoteNumber;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public LocalDateTime getCreateTimestamp() {
|
|
|
54 |
return createTimestamp;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setCreateTimestamp(LocalDateTime createTimestamp) {
|
|
|
58 |
this.createTimestamp = createTimestamp;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
private static final long serialVersionUID = 1L;
|
|
|
62 |
|
|
|
63 |
@Id
|
|
|
64 |
@Column(name="id")
|
|
|
65 |
private int id;
|
|
|
66 |
|
|
|
67 |
@Column(name="fofo_id")
|
|
|
68 |
private int fofoId;
|
|
|
69 |
|
|
|
70 |
@Column(name="debit_note_number")
|
|
|
71 |
private String debitNoteNumber;
|
|
|
72 |
|
|
|
73 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
74 |
@Column(name = "create_timestamp")
|
|
|
75 |
private LocalDateTime createTimestamp = LocalDateTime.now();
|
|
|
76 |
/*
|
|
|
77 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
78 |
@Column(name = "pickup_create_timestamp")
|
|
|
79 |
private LocalDateTime pickupCreateTimestamp;
|
|
|
80 |
|
|
|
81 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
82 |
@Column(name = "scheduled_pickup_timestamp")
|
|
|
83 |
private LocalDateTime scheduledPickupTimestamp;
|
|
|
84 |
|
|
|
85 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
86 |
@Column(name = "return_timestamp")
|
|
|
87 |
private LocalDateTime returnTimestamp;
|
|
|
88 |
|
|
|
89 |
@Convert(converter = LocalDateTimeAttributeConverter.class)
|
|
|
90 |
@Column(name = "refund_timestamp")
|
|
|
91 |
private LocalDateTime refundTimestamp;*/
|
|
|
92 |
}
|