Markus Rohlof (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6155a89...
) *created* an issue
Hibernate Tools (
https://hibernate.atlassian.net/browse/HBX?atlOrigin=eyJpIjoiMTFkN2NiMjZi...
) / Bug (
https://hibernate.atlassian.net/browse/HBX-2476?atlOrigin=eyJpIjoiMTFkN2N...
) HBX-2476 (
https://hibernate.atlassian.net/browse/HBX-2476?atlOrigin=eyJpIjoiMTFkN2N...
) Hibernate Schema Validation filter is not working after upgrading to Hibernate 6 (
https://hibernate.atlassian.net/browse/HBX-2476?atlOrigin=eyJpIjoiMTFkN2N...
)
Issue Type: Bug Affects Versions: 6.1.6.Final Assignee: Koen Aers (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Created: 30/Jan/2023 00:15 AM Priority: Major Reporter: Markus Rohlof (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=6155a89...
)
After Upgrading from Spring Boot 2.7.8 to 3.0.2 and thereby from Hibernate 5 to 6, the
hibernate.properties entry hibernate.hbm2ddl.schema_filter_provider does not seem to work
properly anymore.
Specifically, a custom SchemaFilter will not be used to filter entity table validations.
I have provided minimal examples with Spring Boot 2.7.8 and 3.0.2 to show that it worked
with the old version but not the new one, here:
https://github.com/spring-projects/spring-boot/issues/33832#issuecomment-... (
https://github.com/spring-projects/spring-boot/issues/33832#issuecomment-... )
Some debugging showed that AbstractSchemaValidator receives the correct schemaFilter in
its constructor, but then proceeds to never use it. Instead, it uses the SchemaFilter
provided from ExecutionOptions in the doValidation method, which is statically set to a
Default Filter Instance.
(
https://hibernate.atlassian.net/browse/HBX-2476#add-comment?atlOrigin=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/HBX-2476#add-comment?atlOrigin=eyJ...
)
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#100214- sha1:d3cc1a2 )