Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
c2ad93db
Commit
c2ad93db
authored
Jul 08, 2020
by
ls1947
Browse files
change email body to texttype
parent
f9070d47
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-jpa/src/main/java/edu/kit/scc/webreg/entity/EmailTemplateEntity.java
View file @
c2ad93db
...
@@ -14,8 +14,11 @@ import javax.persistence.Column;
...
@@ -14,8 +14,11 @@ import javax.persistence.Column;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.Inheritance
;
import
javax.persistence.Inheritance
;
import
javax.persistence.InheritanceType
;
import
javax.persistence.InheritanceType
;
import
javax.persistence.Lob
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
org.hibernate.annotations.Type
;
@Entity
(
name
=
"EmailTemplateEntity"
)
@Entity
(
name
=
"EmailTemplateEntity"
)
@Table
(
name
=
"email_template"
)
@Table
(
name
=
"email_template"
)
@Inheritance
(
strategy
=
InheritanceType
.
SINGLE_TABLE
)
@Inheritance
(
strategy
=
InheritanceType
.
SINGLE_TABLE
)
...
@@ -29,7 +32,9 @@ public class EmailTemplateEntity extends AbstractBaseEntity {
...
@@ -29,7 +32,9 @@ public class EmailTemplateEntity extends AbstractBaseEntity {
@Column
(
name
=
"tpl_subject"
,
length
=
512
)
@Column
(
name
=
"tpl_subject"
,
length
=
512
)
private
String
subject
;
private
String
subject
;
@Column
(
name
=
"tpl_body"
,
length
=
4096
)
@Column
(
name
=
"tpl_body"
)
@Lob
@Type
(
type
=
"org.hibernate.type.TextType"
)
private
String
body
;
private
String
body
;
@Column
(
name
=
"tpl_to"
,
length
=
512
)
@Column
(
name
=
"tpl_to"
,
length
=
512
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment