[hibernate-issues] [JIRA] (HHH-13886) columnDefinition broken for audit mappings

JiraAccount (JIRA) jira at hibernate.atlassian.net
Tue Mar 3 04:51:56 EST 2020


JiraAccount ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e5e25e7bbb5110c9a6917b7 ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMzE1OTBmZTdmNmExNDA4NjhlNjg2OTUyM2NiODdhNWYiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiMzE1OTBmZTdmNmExNDA4NjhlNjg2OTUyM2NiODdhNWYiLCJwIjoiaiJ9 ) HHH-13886 ( https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiMzE1OTBmZTdmNmExNDA4NjhlNjg2OTUyM2NiODdhNWYiLCJwIjoiaiJ9 ) columnDefinition broken for audit mappings ( https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiMzE1OTBmZTdmNmExNDA4NjhlNjg2OTUyM2NiODdhNWYiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 5.4.11, 5.4.12 Assignee: Chris Cranford ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aea49f1db-ef91-4d96-8f3a-a939be8d2b1c ) Components: hibernate-envers Created: 03/Mar/2020 01:51 AM Priority: Major Reporter: JiraAccount ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5e5e25e7bbb5110c9a6917b7 )

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/38f01311602f115ccec23f9ee8faf4b2d69d636d

( https://hibernate.atlassian.net/browse/HHH-13886#add-comment?atlOrigin=eyJpIjoiMzE1OTBmZTdmNmExNDA4NjhlNjg2OTUyM2NiODdhNWYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13886#add-comment?atlOrigin=eyJpIjoiMzE1OTBmZTdmNmExNDA4NjhlNjg2OTUyM2NiODdhNWYiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121- sha1:a532aba )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200303/67ce2dbd/attachment.html 


More information about the hibernate-issues mailing list