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;
import org.genesys.blocks.auditlog.annotations.NotAudited;
import org.genesys.blocks.model.ClassPK;
import org.hibernate.annotations.Type;
import org.springframework.data.annotation.CreatedBy;
/**
......@@ -85,11 +86,13 @@ public class AuditLog implements Serializable {
/** String representation of the previous state. */
@Lob
@Column(nullable = true)
@Type(type = "org.hibernate.type.TextType")
private String previousState;
/** String representation of the updated state. */
@Lob
@Column(nullable = true)
@Type(type = "org.hibernate.type.TextType")
private String newState;
/** The action. */
......
......@@ -41,6 +41,7 @@ import org.apache.commons.lang3.StringUtils;
import org.genesys.blocks.model.Copyable;
import org.genesys.blocks.model.JsonViews;
import org.genesys.blocks.security.model.AclSid;
import org.hibernate.annotations.Type;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.oauth2.provider.ClientDetails;
......@@ -148,6 +149,7 @@ public class OAuthClient extends AclSid implements ClientDetails, Copyable<OAuth
/** The description. */
@Lob
@Type(type = "org.hibernate.type.TextType")
private String description;
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