QuestionCatagory.java
/*
* +====================================================================+
* | Copyright (C) 2015 Rochester Institute of Technology, |
* | 103 Lomb Memorial Drive, Rochester, NY - 14623 |
* | All Rights Reserved. |
* +====================================================================+
* FILENAME
* QuestionCatagory.java
*
* AUTHOR
* @author mhickson
*
* =====================================================================
*/
package edu.rit.coopeval.model;
import javax.persistence.*;
@Entity
@Table(name = "QUESTIONCATAGORY")
public class QuestionCatagory extends AuditableEntity {
@Id
@Column(name = "QUESTIONCATAGORYID", nullable = false, insertable = true, updatable = true, precision = 0)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "questionCatagoryId_seq")
@SequenceGenerator(name = "questionCatagoryId_seq", sequenceName = "SEQ_TDAI_QuestionCatagory27", allocationSize = 1)
private long questionCatagoryId;
@Column(name = "NAME", nullable = true, insertable = true, updatable = true, length = 64)
private String name;
public long getQuestionCatagoryId() {
return questionCatagoryId;
}
public void setQuestionCatagoryId(long questionCatagoryId) {
this.questionCatagoryId = questionCatagoryId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}