package com.infinite.focus.server.standard;

import java.util.Date;

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

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class Standard {

	// PK
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private long standard_id;
	
    private String standard_name;
    
    private int grade_type;
    
    @Column(name = "created_at", nullable = false)
	@CreationTimestamp
	public Date createdAt;
	
	@Column(name = "updated_at")
	@UpdateTimestamp
	public Date updatedAt;

	public Standard() {
		super();
	}

	public long getStandard_id() {
		return standard_id;
	}

	public void setStandard_id(long standard_id) {
		this.standard_id = standard_id;
	}

	public String getStandard_name() {
		return standard_name;
	}

	public void setStandard_name(String standard_name) {
		this.standard_name = standard_name;
	}

	public int getGrade_type() {
		return grade_type;
	}

	public void setGrade_type(int grade_type) {
		this.grade_type = grade_type;
	}
	
	public Date getCreatedAt() {
		return createdAt;
	}

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

	public void setUpdateAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}
}
