refactoring model
This commit is contained in:
parent
c50338720f
commit
2ab1eeb036
@ -11,23 +11,15 @@ public class Product {
|
|||||||
@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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user