Guest User

Untitled

a guest
Jun 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // document class for elasticsearch domain object
  2. @Document(indexName = "recipe", type = "recipe", shards = 1, replicas = 0, refreshInterval = "-1")
  3. public class RecipeEntityES {
  4. @Id
  5. private Integer id;
  6. private String name;
  7. private String author;
  8. @Field(type = FieldType.String)
  9. @Version
  10. private Long version;
  11.  
  12. public Integer getId() {
  13. return id;
  14. }
  15.  
  16. public void setId(Integer id) {
  17. this.id = id;
  18. }
  19. ...
  20. }
Add Comment
Please, Sign In to add comment