Last change
on this file since a51a591 was a51a591, checked in by colovik <j.colovik@…>, 14 months ago |
final
|
-
Property mode
set to
100644
|
File size:
474 bytes
|
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.