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 Catalog {

        @Autowired
        private Gson gson;

        private int id;
        private int rank;
        private String title;
        private List<?> _childDocuments_;

        public Catalog(int id, int rank, String title, List<?> items) {
                this.id = id;
                this.rank = rank;
                this.title = title;
                this._childDocuments_ = items;
        }

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