Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
29596 amit.gupta 1
package com.spice.profitmandi.dao.entity.catalog;
2
 
3
import javax.persistence.Column;
4
import javax.persistence.Entity;
5
import javax.persistence.GeneratedValue;
6
import javax.persistence.GenerationType;
7
import javax.persistence.Id;
8
import javax.persistence.Table;
9
import javax.persistence.Transient;
10
 
11
@Entity
12
@Table(name = "catalog.range_item_price", schema = "catalog")
13
public class RangeItemPrice  {
14
 
15
 
16
	@Id
17
	@Column(name = "id")
18
	@GeneratedValue(strategy = GenerationType.IDENTITY)
19
	private int id;
20
 
21
	@Column(name="range_item_id")
22
	private int rangeItemId;
23
 
24
	@Column(name = "min_price")
25
	private double minPrice;
26
 
27
	@Column(name = "max_price")
28
	private double maxPrice;
29
 
30
	@Column(name = "dealer_price")
31
	private double dealerPrice;
32
 
33
	@Column(name = "selling_price")
34
	private double sellingPrice;
35
 
36
	@Transient
37
	private String providerName;
38
 
39
	public int getId() {
40
		return id;
41
	}
42
 
43
	public void setId(int id) {
44
		this.id = id;
45
	}
46
 
47
 
48
	public double getMinPrice() {
49
		return minPrice;
50
	}
51
 
52
	public void setMinPrice(double minPrice) {
53
		this.minPrice = minPrice;
54
	}
55
 
56
	public double getMaxPrice() {
57
		return maxPrice;
58
	}
59
 
60
	public void setMaxPrice(double maxPrice) {
61
		this.maxPrice = maxPrice;
62
	}
63
 
64
	public double getDealerPrice() {
65
		return dealerPrice;
66
	}
67
 
68
	public void setDealerPrice(double dealerPrice) {
69
		this.dealerPrice = dealerPrice;
70
	}
71
 
72
	public double getSellingPrice() {
73
		return sellingPrice;
74
	}
75
 
76
	public void setSellingPrice(double sellingPrice) {
77
		this.sellingPrice = sellingPrice;
78
	}
79
 
80
	public String getProviderName() {
81
		return providerName;
82
	}
83
 
84
	public void setProviderName(String providerName) {
85
		this.providerName = providerName;
86
	}
87
 
88
	public int getRangeItemId() {
89
		return rangeItemId;
90
	}
91
 
92
	public void setRangeItemId(int rangeItemId) {
93
		this.rangeItemId = rangeItemId;
94
	}
95
 
96
	@Override
97
	public String toString() {
98
		return "RangeItemPrice [id=" + id + ", rangeItemId=" + rangeItemId + ", minPrice=" + minPrice + ", maxPrice="
99
				+ maxPrice + ", dealerPrice=" + dealerPrice + ", sellingPrice=" + sellingPrice + ", providerName="
100
				+ providerName + "]";
101
	}
102
 
103
	@Override
104
	public int hashCode() {
105
		final int prime = 31;
106
		int result = 1;
107
		result = prime * result + id;
108
		return result;
109
	}
110
 
111
	@Override
112
	public boolean equals(Object obj) {
113
		if (this == obj)
114
			return true;
115
		if (obj == null)
116
			return false;
117
		if (getClass() != obj.getClass())
118
			return false;
119
		RangeItemPrice other = (RangeItemPrice) obj;
120
		if (id != other.id)
121
			return false;
122
		return true;
123
	}
124
 
125
 
126
 
127
}