| 26299 |
amit.gupta |
1 |
package com.spice.profitmandi.dao.entity.fofo;
|
|
|
2 |
|
|
|
3 |
import java.time.LocalDateTime;
|
|
|
4 |
|
|
|
5 |
import javax.persistence.Column;
|
|
|
6 |
import javax.persistence.Entity;
|
|
|
7 |
import javax.persistence.Id;
|
|
|
8 |
import javax.persistence.Table;
|
|
|
9 |
|
|
|
10 |
@Entity
|
|
|
11 |
@Table(name = "fofo.activated_imei", schema = "fofo")
|
|
|
12 |
public class ActivatedImei {
|
|
|
13 |
|
|
|
14 |
public ActivatedImei() {
|
|
|
15 |
super();
|
|
|
16 |
}
|
|
|
17 |
|
|
|
18 |
public ActivatedImei(String serialNumber, LocalDateTime activationTimestamp) {
|
|
|
19 |
this.activationTimestamp = activationTimestamp;
|
|
|
20 |
this.serialNumber = serialNumber;
|
|
|
21 |
}
|
|
|
22 |
@Id
|
|
|
23 |
@Column(name = "serial_number", unique = true)
|
|
|
24 |
private String serialNumber;
|
|
|
25 |
|
|
|
26 |
@Column(name = "activation_timestamp")
|
|
|
27 |
private LocalDateTime activationTimestamp;
|
|
|
28 |
|
|
|
29 |
@Override
|
|
|
30 |
public String toString() {
|
|
|
31 |
return "ActivatedImeis [serialNumber=" + serialNumber + ", activationTimestamp=" + activationTimestamp + "]";
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public String getSerialNumber() {
|
|
|
35 |
return serialNumber;
|
|
|
36 |
}
|
|
|
37 |
|
|
|
38 |
public void setSerialNumber(String serialNumber) {
|
|
|
39 |
this.serialNumber = serialNumber;
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
public LocalDateTime getActivationTimestamp() {
|
|
|
43 |
return activationTimestamp;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
public void setActivationTimestamp(LocalDateTime activationTimestamp) {
|
|
|
47 |
this.activationTimestamp = activationTimestamp;
|
|
|
48 |
}
|
|
|
49 |
|
|
|
50 |
@Override
|
|
|
51 |
public int hashCode() {
|
|
|
52 |
final int prime = 31;
|
|
|
53 |
int result = 1;
|
|
|
54 |
result = prime * result + ((serialNumber == null) ? 0 : serialNumber.hashCode());
|
|
|
55 |
return result;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
@Override
|
|
|
59 |
public boolean equals(Object obj) {
|
|
|
60 |
if (this == obj)
|
|
|
61 |
return true;
|
|
|
62 |
if (obj == null)
|
|
|
63 |
return false;
|
|
|
64 |
if (getClass() != obj.getClass())
|
|
|
65 |
return false;
|
|
|
66 |
ActivatedImei other = (ActivatedImei) obj;
|
|
|
67 |
if (serialNumber == null) {
|
|
|
68 |
if (other.serialNumber != null)
|
|
|
69 |
return false;
|
|
|
70 |
} else if (!serialNumber.equals(other.serialNumber))
|
|
|
71 |
return false;
|
|
|
72 |
return true;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
}
|