Java hsqldb hibernate persist@Lob

Java hsqldb hibernate persist@Lob,java,hibernate,hibernate-mapping,hsqldb,Java,Hibernate,Hibernate Mapping,Hsqldb,我试图将一个长字符串持久化到数据库(异常的stacktrace),我们使用HSQLDB(2.2.9)进行测试,使用Postgre进行运行时 1) 我给字段加了注释 @Lob private String someBigMessage; 2) 编写迁移DDL脚本(flyway但无所谓) 3) 它迁移正常,但当我执行JUnit测试(使用hsqldb)时,我发现: org.springframework.orm.jpa.JpaSystemException: org.hibernate.except

我试图将一个长字符串持久化到数据库(异常的stacktrace),我们使用HSQLDB(2.2.9)进行测试,使用Postgre进行运行时

1) 我给字段加了注释

@Lob
private String someBigMessage;
2) 编写迁移DDL脚本(flyway但无所谓)

3) 它迁移正常,但当我执行JUnit测试(使用hsqldb)时,我发现:

org.springframework.orm.jpa.JpaSystemException: org.hibernate.exception.GenericJDBCException: could not execute statement; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute statement
...
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute statement
...
Caused by: org.hibernate.exception.GenericJDBCException: could not execute statement
...
Caused by: java.sql.SQLException: java.lang.RuntimeException: unsupported internal operation: Session java.lang.RuntimeException: unsupported internal operation: Session
...
Caused by: org.hsqldb.HsqlException: java.lang.RuntimeException: unsupported internal operation: Session
有什么建议吗?
谢谢。

我已经迁移到2.3.1,在同一个地方出现错误,但有更具体的解释:

HsqlException:数据异常:字符串数据,右截断 然后添加注释@列:

@Lob
@Column(length=20971520)
private String someBigMessage;

然后迁移回2.2.9,它就可以工作了

我已经迁移到2.3.1,在同一个地方出现错误,但有更具体的解释:

HsqlException:数据异常:字符串数据,右截断 然后添加注释@列:

@Lob
@Column(length=20971520)
private String someBigMessage;

然后迁移回2.2.9,它就可以工作了

根据此:,此问题已在2.3.0版中修复。考虑升级,谢谢快速响应。我以前检查过,但是如果有没有升级的解决方法,我会选择它。我不敢相信在2.3.0之前没有人坚持@Lob,这是一个如此常见的操作:)根据这个:,这个问题在2.3.0版本中已经解决了。考虑升级,谢谢快速响应。我以前检查过,但是如果有没有升级的解决方法,我会选择它。我不敢相信在2.3.0之前没有人坚持@Lob,这是一个如此常见的操作:)