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 java.util.List;
4
 
5
import org.springframework.beans.factory.annotation.Autowired;
6
 
7
import com.google.gson.Gson;
8
 
9
public class Item {
10
 
11
	@Autowired
12
	private Gson gson;
13
 
14
	private int id;
15
	private String color;
16
	private List<Tag> _childDocuments_;
17
 
18
	public Item(int id, String color, List<Tag> tags) {
19
		this.id = id;
20
		this.color = color;
21
		this._childDocuments_ = tags;
22
	}
23
 
24
	public String toJSON() {
25
		return gson.toJson(this);
26
	}
27
}