refactoring model
This commit is contained in:
parent
c50338720f
commit
2ab1eeb036
@ -6,58 +6,50 @@ import org.springframework.data.solr.core.mapping.SolrDocument;
|
|||||||
|
|
||||||
@SolrDocument(solrCoreName = "product")
|
@SolrDocument(solrCoreName = "product")
|
||||||
public class Product {
|
public class Product {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Indexed(name="id",type = "string")
|
@Indexed(name = "id", type = "string")
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
|
||||||
@Indexed(name="name",type = "string")
|
@Indexed(name = "name", type = "string")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
|
||||||
@Indexed(name="category",type = "string")
|
@Indexed(name = "category", type = "string")
|
||||||
private String category;
|
private String category;
|
||||||
|
|
||||||
|
|
||||||
@Indexed(name="description",type = "string")
|
@Indexed(name = "description", type = "string")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
public Product(){
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(String id) {
|
public void setId(String id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCategory() {
|
public String getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory(String category) {
|
public void setCategory(String category) {
|
||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDescription(String description) {
|
public void setDescription(String description) {
|
||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user