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

Daniel Kellenberger (JIRA) jira at hibernate.atlassian.net
Wed Mar 4 00:51:49 EST 2020


Daniel Kellenberger ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A2078b0e5-f06f-4fd3-a7fc-2a740ac3278b ) *commented* on HHH-13886 ( https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiNWFiMmYyZmZhMjk1NGYxMjliYjg5MDc2OGIwMjQzNWYiLCJwIjoiaiJ9 )

Re: columnDefinition broken for audit mappings ( https://hibernate.atlassian.net/browse/HHH-13886?atlOrigin=eyJpIjoiNWFiMmYyZmZhMjk1NGYxMjliYjg5MDc2OGIwMjQzNWYiLCJwIjoiaiJ9 )

The same applies with custom domain objects. Example:

@Column(name = "configuration_group_key" , columnDefinition = "cs_key" )
private String key;

And it generates varchar(255) instead of cs_key

This results in the application not been able to start anymore:

Schema-validation: wrong column type encountered in column [configuration_group_key] in table [configuration_group_aud] ; found cs_key (Types#DISTINCT) ( #DISTINCT) ) , but expecting varchar(255) (Types#VARCHAR) ( #VARCHAR) )

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

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/20200304/61e95e5b/attachment.html 


More information about the hibernate-issues mailing list