Commit 53efa2cf authored by Matija Obreza's avatar Matija Obreza
Browse files

@Type annotations for @Lob

- Postgres requirement
parent 0a1ff491
...@@ -36,6 +36,7 @@ import javax.persistence.Transient; ...@@ -36,6 +36,7 @@ import javax.persistence.Transient;
import org.genesys.blocks.auditlog.annotations.NotAudited; import org.genesys.blocks.auditlog.annotations.NotAudited;
import org.genesys.blocks.model.ClassPK; import org.genesys.blocks.model.ClassPK;
import org.hibernate.annotations.Type;
import org.springframework.data.annotation.CreatedBy; import org.springframework.data.annotation.CreatedBy;
/** /**
...@@ -85,11 +86,13 @@ public class AuditLog implements Serializable { ...@@ -85,11 +86,13 @@ public class AuditLog implements Serializable {
/** String representation of the previous state. */ /** String representation of the previous state. */
@Lob @Lob
@Column(nullable = true) @Column(nullable = true)
@Type(type = "org.hibernate.type.TextType")
private String previousState; private String previousState;
/** String representation of the updated state. */ /** String representation of the updated state. */
@Lob @Lob
@Column(nullable = true) @Column(nullable = true)
@Type(type = "org.hibernate.type.TextType")
private String newState; private String newState;
/** The action. */ /** The action. */
......
...@@ -41,6 +41,7 @@ import org.apache.commons.lang3.StringUtils; ...@@ -41,6 +41,7 @@ import org.apache.commons.lang3.StringUtils;
import org.genesys.blocks.model.Copyable; import org.genesys.blocks.model.Copyable;
import org.genesys.blocks.model.JsonViews; import org.genesys.blocks.model.JsonViews;
import org.genesys.blocks.security.model.AclSid; import org.genesys.blocks.security.model.AclSid;
import org.hibernate.annotations.Type;
import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.oauth2.provider.ClientDetails; import org.springframework.security.oauth2.provider.ClientDetails;
...@@ -148,6 +149,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth ...@@ -148,6 +149,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The description. */ /** The description. */
@Lob @Lob
@Type(type = "org.hibernate.type.TextType")
private String description; private String description;
public OAuthClient() { public OAuthClient() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment