package models;

import java.util.List;
import play.data.validation.Constraints;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.CascadeType;



/**
 * Owner entity managed by Ebean
 */
@Entity 
public class Owner extends BaseModel {

    private static final long serialVersionUID = 1L;

    @Constraints.Required
    public String name;

    @OneToMany(cascade = CascadeType.ALL)
    public List<Computer> computers;
    
}

