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 = "hrana")
|
---|
12 | public class Food extends Product{
|
---|
13 | @Column(name = "vegetarijansko")
|
---|
14 | Boolean vegetarian;
|
---|
15 |
|
---|
16 | @Column(name = "kalorii")
|
---|
17 | Integer calories;
|
---|
18 |
|
---|
19 | Boolean vegan;
|
---|
20 |
|
---|
21 | public Food(Integer product_id, String name) {
|
---|
22 | super(product_id, name);
|
---|
23 | }
|
---|
24 |
|
---|
25 | public Food() {
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.