Refactored code for faq
This commit is contained in:
@@ -27,22 +27,15 @@ public class FaqEntity extends BaseEntity {
|
||||
@Column(name = "IS_VISIBLE", nullable = false)
|
||||
private Boolean isVisible;
|
||||
|
||||
@Column(name = "QUESTION_SHORT", length = 255)
|
||||
private String questionShort;
|
||||
|
||||
@Column(name = "QUESTION", columnDefinition = "TEXT")
|
||||
private String question;
|
||||
|
||||
@Column(name = "RESPONSE_SHORT", length = 255)
|
||||
private String responseShort;
|
||||
@Column(name = "TITLE", columnDefinition = "TEXT")
|
||||
private String title;
|
||||
|
||||
@Column(name = "VALUE", columnDefinition = "TEXT")
|
||||
private String value;
|
||||
|
||||
@Column(name = "RESPONSE", columnDefinition = "TEXT")
|
||||
private String response;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "LOOKUP_DATA_ID")
|
||||
private LookUpDataEntity lookupData;
|
||||
|
||||
@Column(name = "RESPONSE_DATE")
|
||||
private LocalDateTime responseDate;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import lombok.Data;
|
||||
@Data
|
||||
public class LookUpDataEntity extends BaseEntity{
|
||||
|
||||
@Column(name = "TITLE", length = 255, nullable = true)
|
||||
@Column(name = "TITLE", columnDefinition = "TEXT", nullable = true)
|
||||
private String title;
|
||||
|
||||
@Column(name = "TYPE", length = 255, nullable = false)
|
||||
@@ -17,6 +17,9 @@ public class LookUpDataEntity extends BaseEntity{
|
||||
|
||||
@Column(name = "VALUE", columnDefinition = "TEXT", nullable = true)
|
||||
private String value;
|
||||
|
||||
@Column(name = "RESPONSE", columnDefinition = "TEXT")
|
||||
private String response;
|
||||
|
||||
public enum LookUpDataTypeEnum {
|
||||
CHECKLIST("CHECKLIST"),
|
||||
|
||||
Reference in New Issue
Block a user