sdy

Delete Phone.java

1 -package com.esboot.bertsearch.dto;
2 -
3 -import lombok.AllArgsConstructor;
4 -import lombok.Data;
5 -import lombok.NoArgsConstructor;
6 -import org.springframework.data.annotation.Id;
7 -import org.springframework.data.elasticsearch.annotations.Document;
8 -import org.springframework.data.elasticsearch.annotations.Field;
9 -import org.springframework.data.elasticsearch.annotations.FieldType;
10 -
11 -@Data
12 -@NoArgsConstructor
13 -@AllArgsConstructor
14 -@Document(indexName = "phones")
15 -public class Phone {
16 -
17 - @Id
18 - private String id;
19 -
20 - @Field(name = "model", type = FieldType.Text)
21 - private String model;
22 -
23 - @Field(name = "price", type = FieldType.Integer)
24 - private int price;
25 -
26 - @Field(name = "date", type = FieldType.Text)
27 - private String date;
28 -}