Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
21720 ashik.ali 1
package com.spice.profitmandi.dao.entity.dtr;
21545 ashik.ali 2
 
3
import java.time.LocalDateTime;
4
 
5
import javax.persistence.Column;
22009 ashik.ali 6
import javax.persistence.Convert;
21545 ashik.ali 7
import javax.persistence.Entity;
8
import javax.persistence.GeneratedValue;
9
import javax.persistence.GenerationType;
10
import javax.persistence.Id;
11
import javax.persistence.Table;
12
 
22009 ashik.ali 13
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
14
 
21545 ashik.ali 15
@Entity
31860 tejbeer 16
@Table(name="dtr.clicks")
21545 ashik.ali 17
public class Click {
18
	@Id
19
	@Column(name="id", unique=true, updatable=false)
20
	@GeneratedValue(strategy = GenerationType.IDENTITY)
21
	private int id;
22
 
23
	@Column(name="user_id")
24
	private int userId;
25
 
26
	@Column(name="store_product_id")
22485 amit.gupta 27
	private int storeProductId;
21545 ashik.ali 28
 
29
	private String tag;
30
 
31
	private String url;
32
 
33
	private float price;
34
 
35
	private String extras;
36
 
37
	@Column(name="product_name")
38
	private String productName;
39
 
40
	private String brand;
41
 
42
	@Column(name="category_id")
43
	private String categoryId;
44
 
22009 ashik.ali 45
	@Convert(converter = LocalDateTimeAttributeConverter.class)
21545 ashik.ali 46
	private LocalDateTime created;
47
 
48
	public int getId() {
49
		return id;
50
	}
51
 
52
	public void setId(int id) {
53
		this.id = id;
54
	}
55
 
56
	public int getUserId() {
57
		return userId;
58
	}
59
 
60
	public void setUserId(int userId) {
61
		this.userId = userId;
62
	}
63
 
64
	public String getTag() {
65
		return tag;
66
	}
67
 
68
	public void setTag(String tag) {
69
		this.tag = tag;
70
	}
71
 
72
	public String getUrl() {
73
		return url;
74
	}
75
 
76
	public void setUrl(String url) {
77
		this.url = url;
78
	}
79
 
80
	public float getPrice() {
81
		return price;
82
	}
83
 
84
	public void setPrice(float price) {
85
		this.price = price;
86
	}
87
 
88
	public String getExtras() {
89
		return extras;
90
	}
91
 
92
	public void setExtras(String extras) {
93
		this.extras = extras;
94
	}
95
 
96
	public String getProductName() {
97
		return productName;
98
	}
99
 
100
	public void setProductName(String productName) {
101
		this.productName = productName;
102
	}
103
 
104
	public String getBrand() {
105
		return brand;
106
	}
107
 
108
	public void setBrand(String brand) {
109
		this.brand = brand;
110
	}
111
 
112
	public String getCategoryId() {
113
		return categoryId;
114
	}
115
 
116
	public void setCategoryId(String categoryId) {
117
		this.categoryId = categoryId;
118
	}
119
 
120
	public LocalDateTime getCreated() {
121
		return created;
122
	}
123
 
124
	public void setCreated(LocalDateTime created) {
125
		this.created = created;
126
	}
127
 
22485 amit.gupta 128
	public int getStoreProdcutId() {
21545 ashik.ali 129
		return storeProductId;
130
	}
131
 
22485 amit.gupta 132
	public void setStoreProductId(int storeProductId) {
21545 ashik.ali 133
		this.storeProductId = storeProductId;
134
	}
135
 
136
	@Override
137
	public String toString() {
138
		return "Click [id=" + id + ", userId=" + userId + ", storeProductId=" + storeProductId + ", tag=" + tag
139
				+ ", url=" + url + ", price=" + price + ", extras=" + extras + ", productName=" + productName
140
				+ ", brand=" + brand + ", categoryId=" + categoryId + ", created=" + created + "]";
141
	}
142
 
143
 
144
 
145
}