Subversion Repositories SmartDukaan

Rev

View as "text/plain" | Blame | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.service.solr;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.google.gson.Gson;

public class Item {

        @Autowired
        private Gson gson;

        private int id;
        private String color;
        private List<Tag> _childDocuments_;

        public Item(int id, String color, List<Tag> tags) {
                this.id = id;
                this.color = color;
                this._childDocuments_ = tags;
        }

        public String toJSON() {
                return gson.toJson(this);
        }
}