Skip to content

Commit b6a85d3

Browse files
author
Jörg-Christian Müller
committed
Project Lombok Pojos
1 parent 5e09acd commit b6a85d3

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package guru.springframework.spring6restmvc.model;
2+
3+
import lombok.Data;
4+
5+
import java.math.BigDecimal;
6+
import java.time.LocalDateTime;
7+
import java.util.UUID;
8+
9+
/**
10+
* Created by jt, Spring Framework Guru.
11+
*/
12+
@Data
13+
public class Beer {
14+
private UUID id;
15+
private Integer version;
16+
private String beerName;
17+
private BeerStyle beerStyle;
18+
private String upc;
19+
private Integer quantityOnHand;
20+
private BigDecimal price;
21+
private LocalDateTime createdDate;
22+
private LocalDateTime updateDate;
23+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package guru.springframework.spring6restmvc.model;
2+
3+
/**
4+
* Created by jt, Spring Framework Guru.
5+
*/
6+
public enum BeerStyle {
7+
LAGER, PILSNER, STOUT, GOSE, PORTER, ALE, WHEAT, IPA, PALE_ALE, SAISON
8+
}

0 commit comments

Comments
 (0)