@Lob @Basic(fetch=FetchType.LAZY) private String entryTemplateContent; Hibernate 会自动将String转化为LongText存储在数据库中。