Skip to content

Commit

Permalink
Fix #346: Remove @lob and @type (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
banterCZ authored Sep 2, 2022
1 parent e591a3a commit ba719b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.io.Serializable;
Expand Down Expand Up @@ -74,8 +73,6 @@ public class DocumentResultEntity implements Serializable {
* Reason why the document was rejected
*/
@Column(name = "reject_reason")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String rejectReason;

/**
Expand All @@ -89,16 +86,12 @@ public class DocumentResultEntity implements Serializable {
* JSON serialized document with the verification result
*/
@Column(name = "verification_result")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String verificationResult;

/**
* JSON serialized errors which occurred during document processing
*/
@Column(name = "error_detail")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String errorDetail;

@Column(name = "error_origin")
Expand All @@ -109,8 +102,6 @@ public class DocumentResultEntity implements Serializable {
* JSON serialized data extracted from the uploaded document
*/
@Column(name = "extracted_data")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String extractedData;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.io.Serializable;
Expand Down Expand Up @@ -137,8 +136,6 @@ public class DocumentVerificationEntity implements Serializable {
* Overall reason for the document rejection
*/
@Column(name = "reject_reason")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String rejectReason;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.io.Serializable;
Expand Down Expand Up @@ -77,8 +76,6 @@ public class IdentityVerificationEntity implements Serializable {
private IdentityVerificationPhase phase;

@Column(name = "reject_reason")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String rejectReason;

@Column(name = "reject_origin")
Expand All @@ -93,8 +90,6 @@ public class IdentityVerificationEntity implements Serializable {
private ErrorOrigin errorOrigin;

@Column(name = "session_info")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String sessionInfo;

@Column(name = "timestamp_created", nullable = false)
Expand Down

0 comments on commit ba719b6

Please sign in to comment.