Subversion Repositories SmartDukaan

Rev

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

Rev 23362 Rev 23398
Line 54... Line 54...
54
	
54
	
55
	@Column(name = "hsnCode")
55
	@Column(name = "hsnCode")
56
	private String hsnCode;
56
	private String hsnCode;
57
	
57
	
58
	@Column(name = "sellingPrice")
58
	@Column(name = "sellingPrice")
59
	private float sellingPrice;
59
	private Float sellingPrice;
60
	
60
	
61
	public int getId() {
61
	public int getId() {
62
		return id;
62
		return id;
63
	}
63
	}
64
	public void setId(int id) {
64
	public void setId(int id) {
Line 111... Line 111...
111
	}
111
	}
112
	public void setCatalogItemId(int catalogItemId) {
112
	public void setCatalogItemId(int catalogItemId) {
113
		this.catalogItemId = catalogItemId;
113
		this.catalogItemId = catalogItemId;
114
	}
114
	}
115
	
115
	
116
	public float getSellingPrice() {
116
	public Float getSellingPrice() {
117
		return sellingPrice;
117
		return sellingPrice;
118
	}
118
	}
119
	
119
	
120
	public void setSellingPrice(float sellingPrice) {
120
	public void setSellingPrice(Float sellingPrice) {
121
		this.sellingPrice = sellingPrice;
121
		this.sellingPrice = sellingPrice;
122
	}
122
	}
123
	
123
	
-
 
124
	public String getItemDescription(){
-
 
125
		StringBuilder itemString = new StringBuilder();
-
 
126
		if(this.getBrand() != null && !this.getBrand().isEmpty()){
-
 
127
			itemString.append(this.getBrand().trim());
-
 
128
		}
-
 
129
		itemString.append(" ");
-
 
130
		if(this.getModelName() != null && !this.getModelName().isEmpty()){
-
 
131
			itemString.append(this.getModelName().trim());
-
 
132
		}
-
 
133
		itemString.append(" ");
-
 
134
		if(this.getModelNumber() != null && !this.getModelNumber().isEmpty()){
-
 
135
			itemString.append(this.getModelNumber().trim());
-
 
136
		}
-
 
137
		itemString.append(" ");
-
 
138
		if(this.getColor() != null && !this.getColor().isEmpty()){
-
 
139
			itemString.append(this.getColor().trim());
-
 
140
		}
-
 
141
		return itemString.toString();
-
 
142
	}
-
 
143
	
124
	@Override
144
	@Override
125
	public int hashCode() {
145
	public int hashCode() {
126
		final int prime = 31;
146
		final int prime = 31;
127
		int result = 1;
147
		int result = 1;
128
		result = prime * result + id;
148
		result = prime * result + id;