Subversion Repositories SmartDukaan

Rev

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

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

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

import com.google.gson.Gson;

public class Tag {

        @Autowired
        private Gson gson;

        private int id;
        private int sellingPrice;
        private String mop;

        public Tag(int id, int sellingPrice, String mop) {
                this.id = id;
                this.sellingPrice = sellingPrice;
                this.mop = mop;
        }

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