package app.domain.entities;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.validation.constraints.NotNull;

import app.domain.enums.Size;

@Entity
@DiscriminatorValue("gift")
public class Gift extends Present implements Serializable {

	@NotNull
	@Basic
	private String name;
	
	@Enumerated(EnumType.STRING)
	@Basic
	private Size size;

	public Gift() {
		super();
	}

	public String getName() {
		return name;
	}

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

	public Size getSize() {
		return size;
	}

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