source: src/main/java/com/example/model/Food.java

Last change on this file was a51a591, checked in by colovik <j.colovik@…>, 14 months ago

final

  • Property mode set to 100644
File size: 474 bytes
Line 
1package com.example.model;
2
3import lombok.Data;
4
5import javax.persistence.Column;
6import javax.persistence.Entity;
7import javax.persistence.Table;
8
9@Data
10@Entity
11@Table(name = "hrana")
12public 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.