source: src/main/java/com/example/model/Drink.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: 482 bytes
RevLine 
[a51a591]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 = "pijaloci")
12public 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.