Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
28371 amit.gupta 1
package com.spice.profitmandi.dao.entity.dtr;
2
 
3
import java.io.Serializable;
4
 
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
import javax.persistence.Transient;
12
 
13
import com.fasterxml.jackson.annotation.JsonProperty;
14
 
15
/**
16
 * This class basically contains api details
17
 * 
18
 * @author ashikali
19
 *
20
 */
21
@Entity
22
@Table(name = "dtr.web_offer_product", schema = "dtr")
23
public class WebOfferProduct implements Serializable {
24
 
25
	private static final long serialVersionUID = 1L;
26
	@JsonProperty(defaultValue = "0")
27
	@Id
28
	@GeneratedValue(strategy = GenerationType.IDENTITY)
29
	private int id;
30
 
31
	@Column
32
	private int webOfferId;
33
 
34
	@Column
35
	private int entityId;
36
 
37
	@JsonProperty(defaultValue = "0")
38
	@Column(name = "rank")
39
	private int rank;
40
 
41
	@Transient
42
	private String productName;
43
 
44
	public String getProductName() {
45
		return productName;
46
	}
47
 
48
	public void setProductName(String productName) {
49
		this.productName = productName;
50
	}
51
 
52
	public int getId() {
53
		return id;
54
	}
55
 
56
	public void setId(int id) {
57
		this.id = id;
58
	}
59
 
60
	public int getWebOfferId() {
61
		return webOfferId;
62
	}
63
 
64
	public void setWebOfferId(int webOfferId) {
65
		this.webOfferId = webOfferId;
66
	}
67
 
68
	public int getEntityId() {
69
		return entityId;
70
	}
71
 
72
	public void setEntityId(int entityId) {
73
		this.entityId = entityId;
74
	}
75
 
76
	public int getRank() {
77
		return rank;
78
	}
79
 
80
	public void setRank(int rank) {
81
		this.rank = rank;
82
	}
83
 
84
}