refactoring model

This commit is contained in:
mujah 2016-11-09 18:36:32 +08:00
parent c50338720f
commit 2ab1eeb036
1 changed files with 13 additions and 21 deletions

View File

@ -6,58 +6,50 @@ import org.springframework.data.solr.core.mapping.SolrDocument;
@SolrDocument(solrCoreName = "product")
public class Product {
@Id
@Indexed(name="id",type = "string")
@Indexed(name = "id", type = "string")
private String id;
@Indexed(name="name",type = "string")
@Indexed(name = "name", type = "string")
private String name;
@Indexed(name="category",type = "string")
@Indexed(name = "category", type = "string")
private String category;
@Indexed(name="description",type = "string")
@Indexed(name = "description", type = "string")
private String description;
public Product(){
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}