package models;

import java.util.List;
import play.data.validation.Constraints;
import scala.collection.immutable.List;
import scala.math.Ordering;

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 Ordering.String name;

    public Ordering.String age;

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

