Tristan Lins (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16253 (
https://hibernate.atlassian.net/browse/HHH-16253?atlOrigin=eyJpIjoiZTQzMT...
)
Re: [Envers] Schema Validation Failure With Audited (N)Clob Column with Hibernate 6 on H2
(
https://hibernate.atlassian.net/browse/HHH-16253?atlOrigin=eyJpIjoiZTQzMT...
)
I run into the same issue with postgres 15.
The column definition (in Kotlin):
@Column(nullable = false)
@Basic(fetch = FetchType.EAGER)
@Lob
var conclusion: String = ""
The schema update statements, generated by hibernate:
alter table if exists "article"
alter column "conclusion" set data type oid;
alter table if exists "article_audit"
alter column "conclusion" set data type varchar (255);
When I use java.sql.Clob as field type, then the audit conclusion column is generated as
oid as well.
But this is not realy an option, because I needed to rewrite a bunch of columns.
(
https://hibernate.atlassian.net/browse/HHH-16253#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16253#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100232- sha1:33a7c72 )