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() {
|
}
|
}
|