Skip to content

Instantly share code, notes, and snippets.

@theflofly
Created January 14, 2016 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theflofly/f7b7dd015a3627b40068 to your computer and use it in GitHub Desktop.
Save theflofly/f7b7dd015a3627b40068 to your computer and use it in GitHub Desktop.
package com.tcb.issue1.model;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
/**
* This class represents an offer (a car to sell).
*
* Created by Florian.Courtial on 11/01/16.
*/
@Data
@Document(indexName="issue1", type="offer")
public class Offer {
@Id
private String id;
@Field(type = FieldType.String)
private String model;
@Field(type = FieldType.Integer)
private int milesNumber;
@Field(type = FieldType.Integer)
private int age;
@Field(type = FieldType.Integer)
private int price;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment