fix large fields
This commit is contained in:
parent
315409dd29
commit
08544e1428
@ -1,6 +1,7 @@
|
|||||||
package com.primefactorsolutions.model;
|
package com.primefactorsolutions.model;
|
||||||
|
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.Lob;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
@ -13,6 +14,8 @@ import lombok.NoArgsConstructor;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class Question extends BaseEntity{
|
public class Question extends BaseEntity{
|
||||||
private String title;
|
private String title;
|
||||||
|
@Lob
|
||||||
private String description;
|
private String description;
|
||||||
|
@Lob
|
||||||
private String content;
|
private String content;
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ package com.primefactorsolutions.model;
|
|||||||
import io.hypersistence.utils.hibernate.type.json.JsonType;
|
import io.hypersistence.utils.hibernate.type.json.JsonType;
|
||||||
import jakarta.persistence.Column;
|
import jakarta.persistence.Column;
|
||||||
import jakarta.persistence.Entity;
|
import jakarta.persistence.Entity;
|
||||||
|
import jakarta.persistence.Lob;
|
||||||
import jakarta.persistence.ManyToOne;
|
import jakarta.persistence.ManyToOne;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@ -21,6 +22,7 @@ public class Submission extends BaseEntity {
|
|||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Question question;
|
private Question question;
|
||||||
|
|
||||||
|
@Lob
|
||||||
private String response;
|
private String response;
|
||||||
|
|
||||||
@Type(JsonType.class)
|
@Type(JsonType.class)
|
||||||
|
Loading…
Reference in New Issue
Block a user