// Path: chapter07/src/main/java/com/packtpub/pf/blueprint/MovieType.java
// public enum MovieType {
//     YOUTUBE, QUICKTIME
// }


import com.packtpub.pf.blueprint.MovieType;
import lombok.Data;
import javax.persistence.*;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
package com.packtpub.pf.blueprint.persistence.entity;



/**
 * Created with IntelliJ IDEA.
 * User: Ramkumar Pillai    <psramkumar@gmail.com>
 * Date: 3/6/14
 * Time: 11:06 AM
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table
@Data
public class Movie {

    @Id
    @GeneratedValue
    private Long id;

    private String title;

    private String description;

    @Temporal(TemporalType.DATE)
    private Date releaseDate;

    private int rating;

    private boolean favorite;

    private String image;

    private boolean isImageUrl;

    private String movieUrl;

// Path: chapter07/src/main/java/com/packtpub/pf/blueprint/MovieType.java
// public enum MovieType {
//     YOUTUBE, QUICKTIME
// }


// Path: chapter07/src/main/java/com/packtpub/pf/blueprint/persistence/entity/Movie.java
import com.packtpub.pf.blueprint.MovieType;
import lombok.Data;
import javax.persistence.*;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

package com.packtpub.pf.blueprint.persistence.entity;



/**
 * Created with IntelliJ IDEA.
 * User: Ramkumar Pillai    <psramkumar@gmail.com>
 * Date: 3/6/14
 * Time: 11:06 AM
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table
@Data
public class Movie {

    @Id
    @GeneratedValue
    private Long id;

    private String title;

    private String description;

    @Temporal(TemporalType.DATE)
    private Date releaseDate;

    private int rating;

    private boolean favorite;

    private String image;

    private boolean isImageUrl;

    private String movieUrl;

    private MovieType movieType;