package com.infinite.focus.server.lessons;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.GenericGenerator;


/**
 * 
 * @author Saboor
 * 
 *
 */

@Entity
public class Lesson {
	
	//PK
 	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long lesson_id;
 	
 	private long grade_id, test_id;
 	
 	private int lesson_index;
 	
 	@Transient
 	public boolean completed = false;
 	
	private String guide_post_text, video_url;
	
	private long video_duration;
			
	public Lesson() {
		super();
	}

	public long getLesson_id() {
		return lesson_id;
	}

	public void setLesson_id(long lesson_id) {
		this.lesson_id = lesson_id;
	}

	public long getGrade_id() {
		return grade_id;
	}

	public void setGrade_id(long grade_id) {
		this.grade_id = grade_id;
	}

	public int getLesson_index() {
		return lesson_index;
	}

	public void setLesson_index(int lesson_index) {
		this.lesson_index = lesson_index;
	}

	public String getGuide_post_text() {
		return guide_post_text;
	}

	public void setGuide_post_text(String guide_post_text) {
		this.guide_post_text = guide_post_text;
	}

	public String getVideo_url() {
		return video_url;
	}

	public void setVideo_url(String video_url) {
		this.video_url = video_url;
	}

	public long getTest_id() {
		return test_id;
	}

	public void setTest_id(long test_id) {
		this.test_id = test_id;
	}

	public boolean isCompleted() {
		return completed;
	}

	public void setCompleted(boolean completed) {
		this.completed = completed;
	}

	public long getVideo_duration() {
		return video_duration;
	}

	public void setVideo_duration(long video_duration) {
		this.video_duration = video_duration;
	}	
}
