How to disable schema validation in Hibernate for specific objects?

How to disable schema checking in Hibernate for certain objects (not for all)? Some of my entities use SQL, which cause validation to fail, so I want to disable validation for them.

+2
source share
1 answer

not sure which version of sleep mode you are using, but this can be done using the hibernate.hbm2ddl.schema_filter_provider property

Hibernation configuration

Used to specify org.hibernate.tool.schema.spi.SchemaFilterProvider, which will be used when creating, deleting, moving, and checking operations in the database schema. SchemaFilterProvider provides filters that can be used to limit the scope of these operations to specific namespaces, tables, and sequences. All objects included defau

0
source

All Articles