Skip to content

Commit 2ab1eeb

Browse files
committed
refactoring model
1 parent c503387 commit 2ab1eeb

1 file changed

Lines changed: 13 additions & 21 deletions

File tree

  • spring-data-solr/src/main/java/com/baeldung/spring/data/solr/model

‎spring-data-solr/src/main/java/com/baeldung/spring/data/solr/model/Product.java‎

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,58 +6,50 @@
66

77
@SolrDocument(solrCoreName = "product")
88
public class Product {
9-
9+
1010
@Id
11-
@Indexed(name="id",type = "string")
11+
@Indexed(name = "id", type = "string")
1212
private String id;
13-
1413

15-
@Indexed(name="name",type = "string")
14+
@Indexed(name = "name", type = "string")
1615
private String name;
17-
1816

19-
@Indexed(name="category",type = "string")
17+
@Indexed(name = "category", type = "string")
2018
private String category;
21-
2219

23-
@Indexed(name="description",type = "string")
20+
@Indexed(name = "description", type = "string")
2421
private String description;
2522

26-
public Product(){
27-
28-
}
29-
30-
3123
public String getId() {
3224
return id;
3325
}
34-
26+
3527
public void setId(String id) {
3628
this.id = id;
3729
}
38-
30+
3931
public String getName() {
4032
return name;
4133
}
42-
34+
4335
public void setName(String name) {
4436
this.name = name;
4537
}
46-
38+
4739
public String getCategory() {
4840
return category;
4941
}
50-
42+
5143
public void setCategory(String category) {
5244
this.category = category;
5345
}
54-
46+
5547
public String getDescription() {
5648
return description;
5749
}
58-
50+
5951
public void setDescription(String description) {
6052
this.description = description;
6153
}
62-
54+
6355
}

0 commit comments

Comments
 (0)