1 package rest.db2;
2
3 import java.math.BigDecimal;
4
5 import javax.persistence.Entity;
6 import javax.persistence.GeneratedValue;
7 import javax.persistence.GenerationType;
8 import javax.persistence.Id;
9
10 import lombok.Data;
11 import rest.Account;
12
13 @Entity
14 @Data
15 public class SecondAccount implements Account {
16
17 @Id
18 @GeneratedValue(strategy = GenerationType.AUTO)
19 private Long id;
20
21 private String name;
22
23 private BigDecimal total;
24
25 private BigDecimal current;
26
27 }