package com.infinite.focus.server.home;

import java.util.Date;

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

import org.hibernate.annotations.CreationTimestamp;


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

@Entity
public class MoodUpdate {
	
	//PK
 	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long mood_update_id;
 	
 	private long student_id;
 	 	
	private String text;
	
	@CreationTimestamp
	public Date createdAt;
	
		
	public MoodUpdate() {
		super();
	}


	public long getMood_update_id() {
		return mood_update_id;
	}


	public void setMood_update_id(long mood_update_id) {
		this.mood_update_id = mood_update_id;
	}


	public long getStudent_id() {
		return student_id;
	}


	public void setStudent_id(long student_id) {
		this.student_id = student_id;
	}


	public String getText() {
		return text;
	}


	public void setText(String text) {
		this.text = text;
	}


	public Date getCreatedAt() {
		return createdAt;
	}


	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}


	@Override
	public String toString() {
		return "MoodUpdate [mood_update_id=" + mood_update_id + ", student_id=" + student_id + ", text=" + text
				+ ", createdAt=" + createdAt + "]";
	}
	
}
