@Entity()
@Table(name = "MOVIE_LISTENER")
@XmlRootElement()
@NamedQueries({@NamedQuery(name = "Movie.findAll", query = "SELECT m FROM Movie m"), @NamedQuery(name = "Movie.findById", query = "SELECT m FROM Movie m WHERE m.id = :id"), @NamedQuery(name = "Movie.findByName", query = "SELECT m FROM Movie m WHERE m.name = :name"), @NamedQuery(name = "Movie.findByActors", query = "SELECT m FROM Movie m WHERE m.actors = :actors")})
@EntityListeners(MovieListener.class)
public class Movie implements Serializable {
private static final long serialVersionUID = 1L;
@Id()
@NotNull()
private Integer id;
@NotNull()
@Size(min = 1, max = 50)
private String name;
@NotNull()
@Size(min = 1, max = 200)
private String actors;
public Movie();
public Movie(Integer id);
public Movie(Integer id, String name, String actors);
public Integer getId();
public void setId(Integer id);
public String getName();
public void setName(String name);
public String getActors();
public void setActors(String actors);
@Override()
public boolean equals(Object o);
@Override()
public int hashCode();
@Override()
public String toString();
}