Class MissingTableSchemaFilterProvider
java.lang.Object
io.hypersistence.optimizer.core.event.persistence.MissingTableSchemaFilterProvider
- All Implemented Interfaces:
org.hibernate.tool.schema.spi.SchemaFilterProvider
public class MissingTableSchemaFilterProvider
extends Object
implements org.hibernate.tool.schema.spi.SchemaFilterProvider
The
MissingTableSchemaFilterProvider limits the hbm2ddl schema management of the
metadata fallback to the event tables that are missing.
The MetadataEventSchemaCreator registers every event entity, since the event entities
reference the run entity through their @ManyToOne associations, but the tables that already
exist must not be migrated. So, only the missing tables, along with their indexes and foreign keys,
are created.
- Since:
- 2.14.0
- Author:
- Vlad Mihalcea
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.tool.schema.spi.SchemaFilterorg.hibernate.tool.schema.spi.SchemaFilterorg.hibernate.tool.schema.spi.SchemaFilterorg.hibernate.tool.schema.spi.SchemaFilterRequired since Hibernate 7.org.hibernate.tool.schema.spi.SchemaFilter
-
Constructor Details
-
MissingTableSchemaFilterProvider
-
-
Method Details
-
getCreateFilter
public org.hibernate.tool.schema.spi.SchemaFilter getCreateFilter()- Specified by:
getCreateFilterin interfaceorg.hibernate.tool.schema.spi.SchemaFilterProvider
-
getDropFilter
public org.hibernate.tool.schema.spi.SchemaFilter getDropFilter()- Specified by:
getDropFilterin interfaceorg.hibernate.tool.schema.spi.SchemaFilterProvider
-
getTruncatorFilter
public org.hibernate.tool.schema.spi.SchemaFilter getTruncatorFilter()Required since Hibernate 7. -
getMigrateFilter
public org.hibernate.tool.schema.spi.SchemaFilter getMigrateFilter()- Specified by:
getMigrateFilterin interfaceorg.hibernate.tool.schema.spi.SchemaFilterProvider
-
getValidateFilter
public org.hibernate.tool.schema.spi.SchemaFilter getValidateFilter()- Specified by:
getValidateFilterin interfaceorg.hibernate.tool.schema.spi.SchemaFilterProvider
-