Commit c2ad93db authored by ls1947's avatar ls1947
Browse files

change email body to texttype

parent f9070d47
......@@ -14,8 +14,11 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Lob;
import javax.persistence.Table;
import org.hibernate.annotations.Type;
@Entity(name = "EmailTemplateEntity")
@Table(name = "email_template")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
......@@ -29,7 +32,9 @@ public class EmailTemplateEntity extends AbstractBaseEntity {
@Column(name = "tpl_subject", length=512)
private String subject;
@Column(name = "tpl_body", length=4096)
@Column(name = "tpl_body")
@Lob
@Type(type = "org.hibernate.type.TextType")
private String body;
@Column(name = "tpl_to", length=512)
......
Supports Markdown
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