Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
31604 tejbeer 1
package com.spice.profitmandi.dao.service.solr;
2
 
3
import org.springframework.beans.factory.annotation.Autowired;
4
 
5
import com.google.gson.Gson;
6
 
7
public class Tag {
8
 
9
	@Autowired
10
	private Gson gson;
11
 
12
	private int id;
13
	private int sellingPrice;
14
	private String mop;
15
 
16
	public Tag(int id, int sellingPrice, String mop) {
17
		this.id = id;
18
		this.sellingPrice = sellingPrice;
19
		this.mop = mop;
20
	}
21
 
22
	public String toJSON() {
23
		return gson.toJson(this);
24
	}
25
}