Rev 21720 | Rev 22479 | Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed
package com.spice.profitmandi.dao.entity.dtr;import java.time.LocalDateTime;import javax.persistence.Column;import javax.persistence.Convert;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.Table;import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;@Entity@Table(name="dtr.clicks", schema = "dtr")public class Click {@Id@Column(name="id", unique=true, updatable=false)@GeneratedValue(strategy = GenerationType.IDENTITY)private int id;@Column(name="user_id")private int userId;@Column(name="store_product_id")private int storeProductId;private String tag;private String url;private float price;private String extras;@Column(name="product_name")private String productName;private String brand;@Column(name="category_id")private String categoryId;@Convert(converter = LocalDateTimeAttributeConverter.class)private LocalDateTime created;public int getId() {return id;}public void setId(int id) {this.id = id;}public int getUserId() {return userId;}public void setUserId(int userId) {this.userId = userId;}public String getTag() {return tag;}public void setTag(String tag) {this.tag = tag;}public String getUrl() {return url;}public void setUrl(String url) {this.url = url;}public float getPrice() {return price;}public void setPrice(float price) {this.price = price;}public String getExtras() {return extras;}public void setExtras(String extras) {this.extras = extras;}public String getProductName() {return productName;}public void setProductName(String productName) {this.productName = productName;}public String getBrand() {return brand;}public void setBrand(String brand) {this.brand = brand;}public String getCategoryId() {return categoryId;}public void setCategoryId(String categoryId) {this.categoryId = categoryId;}public LocalDateTime getCreated() {return created;}public void setCreated(LocalDateTime created) {this.created = created;}public int getStoreProdcutId() {return storeProductId;}public void setStoreProductId(int storeProductId) {this.storeProductId = storeProductId;}@Overridepublic String toString() {return "Click [id=" + id + ", userId=" + userId + ", storeProductId=" + storeProductId + ", tag=" + tag+ ", url=" + url + ", price=" + price + ", extras=" + extras + ", productName=" + productName+ ", brand=" + brand + ", categoryId=" + categoryId + ", created=" + created + "]";}}