-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathBeer.java
More file actions
43 lines (32 loc) · 919 Bytes
/
Beer.java
File metadata and controls
43 lines (32 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package guru.springframework.spring7restmvc.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import tools.jackson.databind.annotation.JsonDeserialize;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.UUID;
/**
* Created by jt, Spring Framework Guru.
*/
@JsonDeserialize(builder = Beer.BeerBuilder.class)
@Builder
@Data
public class Beer {
@JsonProperty("id")
private UUID id;
@JsonProperty("version")
private Integer version;
@JsonProperty("beerName")
private String beerName;
@JsonProperty("beerStyle")
private BeerStyle beerStyle;
@JsonProperty("upc")
private String upc;
@JsonProperty("quantityOnHand")
private Integer quantityOnHand;
@JsonProperty("price")
private BigDecimal price;
private LocalDateTime createdDate;
private LocalDateTime updateDate;
}