-
Notifications
You must be signed in to change notification settings - Fork 599
Expand file tree
/
Copy pathBeerServiceImpl.java
More file actions
28 lines (25 loc) · 829 Bytes
/
Copy pathBeerServiceImpl.java
File metadata and controls
28 lines (25 loc) · 829 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
package guru.springframework.spring6restmvc.services;
import guru.springframework.spring6restmvc.model.Beer;
import guru.springframework.spring6restmvc.model.BeerStyle;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.UUID;
/**
* Created by jt, Spring Framework Guru.
*/
public class BeerServiceImpl implements BeerService {
@Override
public Beer getBeerById(UUID id) {
return Beer.builder()
.id(id)
.version(1)
.beerName("Galaxy Cat")
.beerStyle(BeerStyle.PALE_ALE)
.upc("12356")
.price(new BigDecimal("12.99"))
.quantityOnHand(122)
.createdDate(LocalDateTime.now())
.updateDate(LocalDateTime.now())
.build();
}
}