Hendrik Jungnitsch
2022-09-27 81d1e5cb8c969bc2a546282f10dccd63823739fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package de.gedoplan.seminar.sbt.di.exercise.domain;
 
import javax.persistence.*;
 
@Entity
@Access(AccessType.FIELD)
@Table(name = Beverage.TABLE_NAME)
public class Beverage {
  public static final String TABLE_NAME = "DI_BEVERAGE";
 
  @Id
  private String id;
 
  private String name;
 
  private double alcoholPercent;
 
  public Beverage(String id, String name, double alcoholPercent) {
    this.id = id;
    this.name = name;
    this.alcoholPercent = alcoholPercent;
  }
 
  public String getName() {
    return this.name;
  }
 
  public double getAlcoholPercent() {
    return this.alcoholPercent;
  }
 
  protected Beverage() {
  }
}