package app.entities.presents;

import app.entities.Person;
import app.enums.GiftSize;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

@Entity
@DiscriminatorValue(value = "gift")
public class Gift extends Present{

    @NotNull
    private String name;

    private String size;

    public Gift() {
    }

    public Gift(Person owner) {
        super(owner);
    }

    public String getName() {
        return name;
    }

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

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }
}
