Line | |
---|
1 | package com.example.model;
|
---|
2 |
|
---|
3 | import lombok.Data;
|
---|
4 |
|
---|
5 | import javax.persistence.Column;
|
---|
6 | import javax.persistence.Entity;
|
---|
7 | import javax.persistence.Table;
|
---|
8 |
|
---|
9 | @Data
|
---|
10 | @Entity
|
---|
11 | @Table(name = "pijaloci")
|
---|
12 | public class Drink extends Product{
|
---|
13 |
|
---|
14 | @Column(name = "dali_alkoholen")
|
---|
15 | Boolean if_alcoholic;
|
---|
16 |
|
---|
17 | @Column(name = "procenti_alkohol")
|
---|
18 | Integer percentage_alcohol;
|
---|
19 |
|
---|
20 | public Drink(Integer product_id, String name) {
|
---|
21 | super(product_id, name);
|
---|
22 | }
|
---|
23 |
|
---|
24 | public Drink() {
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.