JiraAccount (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e5e25e...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMzE1OTBmZTdm...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiMzE1OT...
) HHH-13886 (
https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiMzE1OT...
) columnDefinition broken for audit mappings (
https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiMzE1OT...
)
Issue Type: Bug Affects Versions: 5.4.11, 5.4.12 Assignee: Chris Cranford (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: hibernate-envers Created: 03/Mar/2020 01:51 AM Priority: Major Reporter:
JiraAccount (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e5e25e...
)
HHH-10844 (
https://hibernate.atlassian.net/browse/HHH-10844 ) Closed should be fixed with
version 5.4.11, but now a column definition like
@Column(name = "text", columnDefinition = "mediumtext")
private String text;
or
@Column(name = "foo", columnDefinition = "char(40)")
private String foo;
no longer works with envers. It will result in the following log messages
Column [text] uses a column-definition of [mediumtext] , resolved
sql-type as [varchar(255)].
Column [foo] uses a column-definition of [char(40)] , resolved sql-type as
[varchar(255)].
and exceptions like this:
Schema-validation: wrong column type encountered in column [foo] in
table [bar] ; found char (Types#CHAR) ( #CHAR) ) , but expecting varchar(255)
(Types#VARCHAR) ( #VARCHAR) )
I think this behaviour was added by this commit:
https://github.com/hibernate/hibernate-orm/commit/38f01311602f115ccec23f9...
(
https://hibernate.atlassian.net/browse/HHH-13886#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13886#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#100121- sha1:a532aba )