Subversion Repositories SmartDukaan

Rev

Rev 23951 | Rev 24049 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23951 Rev 23968
Line 9... Line 9...
9
import javax.persistence.Entity;
9
import javax.persistence.Entity;
10
import javax.persistence.GeneratedValue;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
13
import javax.persistence.Table;
-
 
14
import javax.persistence.Transient;
14
 
15
 
15
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
16
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
16
 
17
 
17
/**
18
/**
18
 * This class basically contains details
19
 * This class basically contains details
19
 * 
20
 * 
20
 * @author ashikali
21
 * @author ashikali
21
 *
22
 *
22
 */
23
 */
-
 
24
/**
-
 
25
 * @author amit
-
 
26
 *
-
 
27
 */
23
@Entity
28
@Entity
24
@Table(name = "transaction.price_drop", schema = "transaction")
29
@Table(name = "transaction.price_drop", schema = "transaction")
25
public class PriceDrop implements Serializable {
30
public class PriceDrop implements Serializable {
26
 
31
 
27
	private static final long serialVersionUID = 1L;
32
	private static final long serialVersionUID = 1L;
Line 34... Line 39...
34
	@GeneratedValue(strategy = GenerationType.IDENTITY)
39
	@GeneratedValue(strategy = GenerationType.IDENTITY)
35
	private int id;
40
	private int id;
36
 
41
 
37
	@Column(name = "catalog_id")
42
	@Column(name = "catalog_id")
38
	private int catalogItemId;
43
	private int catalogItemId;
-
 
44
	
-
 
45
	@Transient
-
 
46
	private String description;
-
 
47
 
-
 
48
	public String getDescription() {
-
 
49
		return description;
-
 
50
	}
-
 
51
 
-
 
52
	public void setDescription(String description) {
-
 
53
		this.description = description;
-
 
54
	}
39
 
55
 
40
	@Column(name = "amount")
56
	@Column(name = "amount")
41
	private float amount;
57
	private float amount;
-
 
58
	
-
 
59
	@Column(name="new_dp")
-
 
60
	private float newDp;
-
 
61
	
-
 
62
	@Column(name="old_dp")
-
 
63
	private float oldDp;
-
 
64
	
-
 
65
	@Column(name="tp")
-
 
66
	private float tp;
-
 
67
	
-
 
68
	@Column(name="nlc")
-
 
69
	private float nlc;
-
 
70
 
-
 
71
 
-
 
72
	public float getNewDp() {
-
 
73
		return newDp;
-
 
74
	}
-
 
75
 
-
 
76
	public void setNewDp(float newDp) {
-
 
77
		this.newDp = newDp;
-
 
78
	}
-
 
79
 
-
 
80
	public float getOldDp() {
-
 
81
		return oldDp;
-
 
82
	}
-
 
83
 
-
 
84
	public void setOldDp(float oldDp) {
-
 
85
		this.oldDp = oldDp;
-
 
86
	}
-
 
87
 
-
 
88
	public float getTp() {
-
 
89
		return tp;
-
 
90
	}
-
 
91
 
-
 
92
	public void setTp(float tp) {
-
 
93
		this.tp = tp;
-
 
94
	}
-
 
95
 
-
 
96
	public float getNlc() {
-
 
97
		return nlc;
-
 
98
	}
-
 
99
 
-
 
100
	public void setNlc(float nlc) {
-
 
101
		this.nlc = nlc;
-
 
102
	}
42
 
103
 
43
	@Column(name = "credit_note_number")
104
	@Column(name = "credit_note_number")
44
	private String creditNoteNumber;
105
	private String creditNoteNumber;
45
 
106
 
46
	@Convert(converter = LocalDateTimeAttributeConverter.class)
107
	@Convert(converter = LocalDateTimeAttributeConverter.class)
Line 93... Line 154...
93
		this.catalogItemId = catalogItemId;
154
		this.catalogItemId = catalogItemId;
94
	}
155
	}
95
 
156
 
96
	@Override
157
	@Override
97
	public String toString() {
158
	public String toString() {
98
		return "PriceDrop [id=" + id + ", catalogItemId=" + catalogItemId + ", amount=" + amount + ", creditNoteNumber="
159
		return "PriceDrop [id=" + id + ", catalogItemId=" + catalogItemId + ", description=" + description + ", amount="
-
 
160
				+ amount + ", newDp=" + newDp + ", oldDp=" + oldDp + ", tp=" + tp + ", nlc=" + nlc
99
				+ creditNoteNumber + ", processTimestamp=" + processTimestamp + ", priceDropIn=" + priceDropIn
161
				+ ", creditNoteNumber=" + creditNoteNumber + ", processTimestamp=" + processTimestamp + ", priceDropIn="
100
				+ ", partnerPayout=" + partnerPayout + ", createdOn=" + createdOn + ", affectedOn=" + affectedOn
162
				+ priceDropIn + ", partnerPayout=" + partnerPayout + ", createdOn=" + createdOn + ", affectedOn="
101
				+ ", creditNoteDate=" + creditNoteDate + "]";
163
				+ affectedOn + ", creditNoteDate=" + creditNoteDate + "]";
102
	}
164
	}
103
 
165
 
104
	public float getAmount() {
166
	public float getAmount() {
105
		return amount;
167
		return amount;
106
	}
168
	}