Sönke Reimer (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-15777 (
https://hibernate.atlassian.net/browse/HHH-15777?atlOrigin=eyJpIjoiMGExMz...
)
Re: wrong column type expected for audit table keys (
https://hibernate.atlassian.net/browse/HHH-15777?atlOrigin=eyJpIjoiMGExMz...
)
The same for me in 6.2.2.
I use
@Audited(modifiedColumnName="INHALT_M")
@JdbcTypeCode(SqlTypes.LONG32VARCHAR)
@Column(name="INHALT")
private String ivInhalt;
as recommend to use or long strings and postgres type text.
The result is as follows:
create table BENUTZER (BENUTZER_ID varchar(32) not null, LOCK_VERSION integer, SUBCLASS
varchar(255), TENANT_ID varchar(32), *INHALT text* , primary key (BENUTZER_ID));
create table BENUTZER_A (BENUTZER_ID varchar(32) not null, REV integer not null, REVTYPE
smallint, REVEND integer, TENANT_ID varchar(32), TENANT_ID_M boolean, INHALT_M boolean,
*INHALT varchar(255)* , primary key (BENUTZER_ID, REV));
(
https://hibernate.atlassian.net/browse/HHH-15777#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15777#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 )