Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我已经休眠 JPA HSQLDB 来自动创建我的数据库表。
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
如何告诉 JPA 或 Hibernate 将字符串保存为 clob/blob 字段?即一个很长的字符串。到目前为止我找不到任何注释。我必须如何在例如 a 上配置它 private String myBigContent?
private String myBigContent
希望这可能会有所帮助:)
@Column( name = "FILEIMAGE" ) @Lob(type = LobType.BLOB) private byte[] fileimage;