QuestionType.java

/*
 * +====================================================================+
 * |         Copyright (C) 2015 Rochester Institute of Technology,      |
 * |            103 Lomb Memorial Drive, Rochester, NY - 14623          |
 * |                        All Rights Reserved.                        |
 * +====================================================================+
 *   FILENAME
 *    QuestionType.java
 *
 *   AUTHOR
 *    @author mhickson
 *
 * =====================================================================
 */

package edu.rit.coopeval.model;

import javax.persistence.*;

@Entity
@Table(name = "QUESTIONTYPE")
public class QuestionType extends AuditableEntity {

    @Id
    @Column(name = "QUESTIONTYPEID", nullable = false, insertable = true, updatable = true, precision = 0)
    private long questionTypeId;

    @Column(name = "NAME", nullable = true, insertable = true, updatable = true, length = 64)
    private String name;

    @Lob
    @Column(name = "DESCRIPTION", nullable = true, insertable = true, updatable = true)
    private String description;

    public long getQuestionTypeId() {
        return questionTypeId;
    }

    public void setQuestionTypeId(long questionTypeId) {
        this.questionTypeId = questionTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}