Subversion Repositories SmartDukaan

Rev

Rev 26817 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
26629 tejbeer 1
package com.spice.profitmandi.dao.entity.fofo;
2
 
3
import java.io.Serializable;
4
import java.time.LocalDateTime;
5
 
6
import javax.persistence.Column;
7
import javax.persistence.Convert;
8
import javax.persistence.Entity;
9
import javax.persistence.GeneratedValue;
10
import javax.persistence.GenerationType;
11
import javax.persistence.Id;
12
import javax.persistence.Table;
13
 
14
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
15
 
16
@Entity
17
@Table(name = "fofo.pending_order", schema = "fofo")
18
public class PendingOrder implements Serializable {
19
 
20
	/**
21
	 * 
22
	 */
23
	private static final long serialVersionUID = 1L;
24
	@Id
25
	@Column(name = "id")
26
	@GeneratedValue(strategy = GenerationType.IDENTITY)
27
	private int id;
28
 
29
	@Column(name = "fofo_id")
30
	private int fofoId;
31
 
32
	@Column(name = "customer_first_name")
33
	private String customerFirstName;
34
 
35
	@Column(name = "customer_last_name")
36
	private String customerLastName;
37
 
38
	@Column(name = "mobile_number", length = 20)
39
	private String mobileNumber;
40
 
41
	@Column(name = "address_line1")
42
	private String line1;
43
 
44
	@Column(name = "address_line2")
45
	private String line2;
46
 
47
	@Column(name = "email_id")
48
	private String emailId;
49
 
50
	@Column(name = "customer_gst_number")
51
	private String customerGstNumber;
52
 
53
	@Column(name = "city")
54
	private String city;
55
 
56
	@Column(name = "state")
57
	private String state;
58
 
59
	@Column(name = "pin_code", length = 10)
60
	private String pinCode;
61
 
62
	@Column(name = "status")
63
	private String status;
64
 
65
	@Convert(converter = LocalDateTimeAttributeConverter.class)
66
	@Column(name = "create_timestamp")
67
	private LocalDateTime createTimestamp = LocalDateTime.now();
68
 
69
	public String getCustomerGstNumber() {
70
		return customerGstNumber;
71
	}
72
 
73
	public void setCustomerGstNumber(String customerGstNumber) {
74
		this.customerGstNumber = customerGstNumber;
75
	}
76
 
77
	public int getId() {
78
		return id;
79
	}
80
 
81
	public void setId(int id) {
82
		this.id = id;
83
	}
84
 
85
	public int getFofoId() {
86
		return fofoId;
87
	}
88
 
89
	public void setFofoId(int fofoId) {
90
		this.fofoId = fofoId;
91
	}
92
 
93
	public String getMobileNumber() {
94
		return mobileNumber;
95
	}
96
 
97
	public void setMobileNumber(String mobileNumber) {
98
		this.mobileNumber = mobileNumber;
99
	}
100
 
101
	public String getCity() {
102
		return city;
103
	}
104
 
105
	public void setCity(String city) {
106
		this.city = city;
107
	}
108
 
109
	public String getCustomerFirstName() {
110
		return customerFirstName;
111
	}
112
 
113
	public void setCustomerFirstName(String customerFirstName) {
114
		this.customerFirstName = customerFirstName;
115
	}
116
 
117
	public String getCustomerLastName() {
118
		return customerLastName;
119
	}
120
 
121
	public void setCustomerLastName(String customerLastName) {
122
		this.customerLastName = customerLastName;
123
	}
124
 
125
	public String getEmailId() {
126
		return emailId;
127
	}
128
 
129
	public void setEmailId(String emailId) {
130
		this.emailId = emailId;
131
	}
132
 
133
	public String getState() {
134
		return state;
135
	}
136
 
137
	public void setState(String state) {
138
		this.state = state;
139
	}
140
 
141
	public String getPinCode() {
142
		return pinCode;
143
	}
144
 
145
	public void setPinCode(String pinCode) {
146
		this.pinCode = pinCode;
147
	}
148
 
149
	public String getStatus() {
150
		return status;
151
	}
152
 
153
	public void setStatus(String status) {
154
		this.status = status;
155
	}
156
 
157
	public LocalDateTime getCreateTimestamp() {
158
		return createTimestamp;
159
	}
160
 
161
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
162
		this.createTimestamp = createTimestamp;
163
	}
164
 
165
	public String getLine1() {
166
		return line1;
167
	}
168
 
169
	public void setLine1(String line1) {
170
		this.line1 = line1;
171
	}
172
 
173
	public String getLine2() {
174
		return line2;
175
	}
176
 
177
	public void setLine2(String line2) {
178
		this.line2 = line2;
179
	}
180
 
181
	@Override
182
	public String toString() {
183
		return "PendingOrder [id=" + id + ", fofoId=" + fofoId + ", customerFirstName=" + customerFirstName
184
				+ ", customerLastName=" + customerLastName + ", mobileNumber=" + mobileNumber + ", line1=" + line1
185
				+ ", line2=" + line2 + ", emailId=" + emailId + ", customerGstNumber=" + customerGstNumber + ", city="
186
				+ city + ", state=" + state + ", pinCode=" + pinCode + ", status=" + status + ", createTimestamp="
187
				+ createTimestamp + "]";
188
	}
189
 
190
}