[hibernate-issues] [JIRA] (HHH-14068) Disable HHH000457 warning

Rad Akefirad (JIRA) jira at hibernate.atlassian.net
Fri Jun 12 05:07:51 EDT 2020


Rad Akefirad ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A41c28043-b245-4547-ba8e-3cb323d16274 ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYmM3M2MzYTA4MWIwNGRlMGFiY2UyZjkxZjEwYTRjZmEiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14068?atlOrigin=eyJpIjoiYmM3M2MzYTA4MWIwNGRlMGFiY2UyZjkxZjEwYTRjZmEiLCJwIjoiaiJ9 ) HHH-14068 ( https://hibernate.atlassian.net/browse/HHH-14068?atlOrigin=eyJpIjoiYmM3M2MzYTA4MWIwNGRlMGFiY2UyZjkxZjEwYTRjZmEiLCJwIjoiaiJ9 ) Disable HHH000457 warning ( https://hibernate.atlassian.net/browse/HHH-14068?atlOrigin=eyJpIjoiYmM3M2MzYTA4MWIwNGRlMGFiY2UyZjkxZjEwYTRjZmEiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 5.4.15 Assignee: Unassigned Attachments: hibernate-warning.zip Components: hibernate-core Created: 12/Jun/2020 02:07 AM Priority: Major Reporter: Rad Akefirad ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A41c28043-b245-4547-ba8e-3cb323d16274 )

Having @DiscriminatorColumn (for example to explicitly set the column name) causes the following warning:

> 
> 
> 
> HHH000457: Joined inheritance hierarchy [com.example.Foo] defined explicit
> @DiscriminatorColumn. Legacy Hibernate behavior was to ignore the
> @DiscriminatorColumn. However, as part of issue HHH-6911 (
> https://hibernate.atlassian.net/browse/HHH-6911 ) Closed we now apply the
> explicit @DiscriminatorColumn. If you would prefer the legacy behavior,
> enable the `hibernate.discriminator.ignore_explicit_for_joined` setting
> (hibernate.discriminator.ignore_explicit_for_joined=true)
> 
> 

As the log says, having the property set to true does remove the warning, but what if I need the new behavior? Having the property set to false still prints the warning.
I expect it to print the warning only in case of absence of the property. In other words, it should not print the warning if the property is defined regardless of the value.

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

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#100128- sha1:14a4bff )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200612/b467e97b/attachment.html 


More information about the hibernate-issues mailing list