package models;

import play.data.validation.Constraints;
import play.db.ebean.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "actors")
public class Actor extends Model {

    @Id
    private Long id;

    @Constraints.Required
    @Column(unique = true)
    private String name;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

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


    public static Finder<Long, Actor> find = new Finder<>(Long.class, Actor.class);
}

@@ -714,10 +714,542 @@
 class);%0A
+%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A        if (!super.equals(o)) return false;%0A%0A        Actor actor = (Actor) o;%0A%0A        if (name != null ? !name.equals(actor.name) : actor.name != null) return false;%0A%0A        return true;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = super.hashCode();%0A        result = 31 * result + (name != null ? name.hashCode() : 0);%0A        return result;%0A    %7D%0A
 %7D%0A

Add hashCode and equals to actor model, since a show holds all actors in a HashSet