130 lines
2.9 KiB
Plaintext
130 lines
2.9 KiB
Plaintext
package com.healthcare.ohctech.entity;
|
|
|
|
import jakarta.persistence.*;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import org.hibernate.annotations.UpdateTimestamp;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@Entity
|
|
@Table(name = "questionaire_master")
|
|
public class QuestionaireMaster {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@Column(name = "question_id")
|
|
private Long id;
|
|
|
|
@Column(name = "question")
|
|
@NotBlank(message = "Question must not be blank or null")
|
|
private String question;
|
|
|
|
@Column(name = "question_local_lang")
|
|
private String questionLocalLang;
|
|
|
|
@Column(name = "question_sequence")
|
|
private Integer questionSequence;
|
|
|
|
@Column(name = "question_type")
|
|
private String questionType;
|
|
|
|
@Column(name = "section_name")
|
|
private String sectionName;
|
|
|
|
@Column(name = "sub_section_available")
|
|
private String subSectionAvailable;
|
|
|
|
@Column(name = "sub_section_order")
|
|
private Integer subSectionOrder;
|
|
|
|
@Column(name = "last_modified")
|
|
@UpdateTimestamp
|
|
private LocalDateTime lastModified;
|
|
|
|
@Column(name = "modified_by")
|
|
private Long modifiedBy;
|
|
|
|
// Getters and setters
|
|
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getQuestion() {
|
|
return question;
|
|
}
|
|
|
|
public void setQuestion(String question) {
|
|
this.question = question;
|
|
}
|
|
|
|
public String getQuestionLocalLang() {
|
|
return questionLocalLang;
|
|
}
|
|
|
|
public void setQuestionLocalLang(String questionLocalLang) {
|
|
this.questionLocalLang = questionLocalLang;
|
|
}
|
|
|
|
public Integer getQuestionSequence() {
|
|
return questionSequence;
|
|
}
|
|
|
|
public void setQuestionSequence(Integer questionSequence) {
|
|
this.questionSequence = questionSequence;
|
|
}
|
|
|
|
public String getQuestionType() {
|
|
return questionType;
|
|
}
|
|
|
|
public void setQuestionType(String questionType) {
|
|
this.questionType = questionType;
|
|
}
|
|
|
|
public String getSectionName() {
|
|
return sectionName;
|
|
}
|
|
|
|
public void setSectionName(String sectionName) {
|
|
this.sectionName = sectionName;
|
|
}
|
|
|
|
public String getSubSectionAvailable() {
|
|
return subSectionAvailable;
|
|
}
|
|
|
|
public void setSubSectionAvailable(String subSectionAvailable) {
|
|
this.subSectionAvailable = subSectionAvailable;
|
|
}
|
|
|
|
public Integer getSubSectionOrder() {
|
|
return subSectionOrder;
|
|
}
|
|
|
|
public void setSubSectionOrder(Integer subSectionOrder) {
|
|
this.subSectionOrder = subSectionOrder;
|
|
}
|
|
|
|
public LocalDateTime getLastModified() {
|
|
return lastModified;
|
|
}
|
|
|
|
public void setLastModified(LocalDateTime lastModified) {
|
|
this.lastModified = lastModified;
|
|
}
|
|
|
|
public Long getModifiedBy() {
|
|
return modifiedBy;
|
|
}
|
|
|
|
public void setModifiedBy(Long modifiedBy) {
|
|
this.modifiedBy = modifiedBy;
|
|
}
|
|
}
|