package fi.oispakaljaa.karhu.domain;

import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.Entity;

/**
 * Created by julkku on 11/29/16.
 */


@Entity
public class Drink extends AbstractPersistable<Long> {

    private String name; // KARJALA /

    private String drinkType; // BEER / CIDER

    private Bar bar;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Bar getBar() {
        return bar;
    }

    public void setBar(Bar bar) {
        this.bar = bar;
    }

    public String getDrinkType() {
        return drinkType;
    }

    public void setDrinkType(String drinkType) {
        this.drinkType = drinkType;
    }
}

@@ -344,16 +344,48 @@
 Bar bar;
+%0A    %0A    private Integer price;
 %0A%0A    pu
@@ -784,11 +784,159 @@
 e;%0A    %7D
+%0A%0A    public void setPrice(Integer price) %7B%0A        this.price = price;%0A    %7D%0A%0A    public Integer getPrice() %7B%0A        return price;%0A    %7D%0A    %0A    
 %0A%7D%0A

Add price attribute to Drink