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