Subversion Repositories SmartDukaan

Rev

Rev 31860 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22352 ashik.ali 1
package com.spice.profitmandi.dao.entity.user;
2
 
23300 amit.gupta 3
import java.time.LocalDateTime;
4
 
22352 ashik.ali 5
import javax.persistence.Column;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
8
import javax.persistence.GenerationType;
9
import javax.persistence.Id;
10
import javax.persistence.Table;
11
 
12
/**
13
 * This class basically contains address details
14
 * 
15
 * @author ashikali
16
 *
17
 */
18
@Entity
31860 tejbeer 19
@Table(name="user.counter")
22352 ashik.ali 20
 
21
public class Counter {
22
 
23
	@Id
24
	@Column(name="id", unique=true, updatable=false)
25
	@GeneratedValue(strategy = GenerationType.IDENTITY)
26
	private int id;
27
 
28
	@Column(name = "name")
29
	private String name;
30
 
31
	@Column(name = "email")
32
	private String emailId;
33
 
34
	@Column(name = "mobile")
35
	private String mobileNumber;
36
 
37
	@Column(name = "gstin")
38
	private String gstin;
39
 
40
	@Column(name = "addressId")
41
	private int addressId;
42
 
23300 amit.gupta 43
	@Column(name = "createdOn")
44
	private LocalDateTime createdOn;
45
 
46
	public LocalDateTime getCreatedOn() {
47
		return createdOn;
48
	}
49
 
50
	public void setCreatedOn(LocalDateTime createdOn) {
51
		this.createdOn = createdOn;
52
	}
53
 
22352 ashik.ali 54
	public int getId() {
55
		return id;
56
	}
57
 
58
	public void setId(int id) {
59
		this.id = id;
60
	}
61
 
62
	public String getName() {
63
		return name;
64
	}
65
 
66
	public void setName(String name) {
67
		this.name = name;
68
	}
69
 
70
	public String getEmailId() {
71
		return emailId;
72
	}
73
 
74
	public void setEmailId(String emailId) {
75
		this.emailId = emailId;
76
	}
77
 
78
	public String getMobileNumber() {
79
		return mobileNumber;
80
	}
81
 
82
	public void setMobileNumber(String mobileNumber) {
83
		this.mobileNumber = mobileNumber;
84
	}
85
 
86
	public String getGstin() {
87
		return gstin;
88
	}
89
 
90
	public void setGstin(String gstin) {
91
		this.gstin = gstin;
92
	}
93
 
94
	public int getAddressId() {
95
		return addressId;
96
	}
97
 
98
	public void setAddressId(int addressId) {
99
		this.addressId = addressId;
100
	}
101
 
102
	@Override
103
	public int hashCode() {
104
		final int prime = 31;
105
		int result = 1;
106
		result = prime * result + id;
107
		return result;
108
	}
109
 
110
	@Override
111
	public boolean equals(Object obj) {
112
		if (this == obj)
113
			return true;
114
		if (obj == null)
115
			return false;
116
		if (getClass() != obj.getClass())
117
			return false;
118
		Counter other = (Counter) obj;
119
		if (id != other.id)
120
			return false;
121
		return true;
122
	}
123
 
124
	@Override
125
	public String toString() {
126
		return "Counter [id=" + id + ", name=" + name + ", emailId=" + emailId + ", mobileNumber=" + mobileNumber
37102 amit 127
				+ ", gstin=" + gstin + ", addressId=" + addressId + "]";
22352 ashik.ali 128
	}
129
 
130
}