Subversion Repositories SmartDukaan

Rev

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

Rev 26588 Rev 26674
Line 12... Line 12...
12
import javax.persistence.GenerationType;
12
import javax.persistence.GenerationType;
13
import javax.persistence.Id;
13
import javax.persistence.Id;
14
import javax.persistence.Table;
14
import javax.persistence.Table;
15
 
15
 
16
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
16
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
-
 
17
import com.spice.profitmandi.dao.entity.fofo.PartnerType;
17
import com.spice.profitmandi.dao.enumuration.catalog.ItemCriteriaType;
18
import com.spice.profitmandi.dao.enumuration.catalog.ItemCriteriaType;
18
 
19
 
19
@Entity
20
@Entity
20
@Table(name = "catalog.offer", schema = "catalog")
21
@Table(name = "catalog.offer", schema = "catalog")
21
public class Offer implements Serializable {
22
public class Offer implements Serializable {
Line 41... Line 42...
41
	private String itemParam;
42
	private String itemParam;
42
 
43
 
43
	@Column(name = "price")
44
	@Column(name = "price")
44
	private int price;
45
	private int price;
45
 
46
 
-
 
47
	@Column(name = "criteria")
-
 
48
	private String criteria;
-
 
49
 
-
 
50
	public PartnerType getPartnerType() {
-
 
51
		return partnerType;
-
 
52
	}
-
 
53
 
-
 
54
	public void setPartnerType(PartnerType partnerType) {
-
 
55
		this.partnerType = partnerType;
-
 
56
	}
-
 
57
 
-
 
58
	@Column(name = "category")
-
 
59
	@Enumerated(EnumType.STRING)
-
 
60
	private PartnerType partnerType;
-
 
61
 
46
	public int getPrice() {
62
	public int getPrice() {
47
		return price;
63
		return price;
48
	}
64
	}
49
 
65
 
50
	public void setPrice(int price) {
66
	public void setPrice(int price) {
Line 123... Line 139...
123
 
139
 
124
	public String getTargetType() {
140
	public String getTargetType() {
125
		return targetType;
141
		return targetType;
126
	}
142
	}
127
 
143
 
-
 
144
	public String getCriteria() {
-
 
145
		return criteria;
-
 
146
	}
-
 
147
 
-
 
148
	public void setCriteria(String criteria) {
-
 
149
		this.criteria = criteria;
-
 
150
	}
-
 
151
 
-
 
152
	public void setItemCriteria(ItemCriteriaType itemCriteria) {
-
 
153
		this.itemCriteria = itemCriteria;
-
 
154
	}
-
 
155
 
128
	public void setTargetType(String targetType) {
156
	public void setTargetType(String targetType) {
129
		this.targetType = targetType;
157
		this.targetType = targetType;
130
	}
158
	}
131
 
159
 
132
	public LocalDateTime getStartDateTime() {
160
	public LocalDateTime getStartDateTime() {
Line 158... Line 186...
158
	}
186
	}
159
 
187
 
160
	@Override
188
	@Override
161
	public String toString() {
189
	public String toString() {
162
		return "Offer [id=" + id + ", name=" + name + ", description=" + description + ", itemParam=" + itemParam
190
		return "Offer [id=" + id + ", name=" + name + ", description=" + description + ", itemParam=" + itemParam
163
				+ ", price=" + price + ", itemCriteria=" + itemCriteria + ", amountType=" + amountType + ", targetType="
191
				+ ", price=" + price + ", criteria=" + criteria + ", partnerType=" + partnerType + ", itemCriteria="
164
				+ targetType + ", startDateTime=" + startDateTime + ", endDateTime=" + endDateTime
192
				+ itemCriteria + ", amountType=" + amountType + ", targetType=" + targetType + ", startDateTime="
165
				+ ", createdTimestamp=" + createdTimestamp + "]";
193
				+ startDateTime + ", endDateTime=" + endDateTime + ", createdTimestamp=" + createdTimestamp + "]";
166
	}
194
	}
167
 
195
 
168
}
196
}