Package io.quarkus.hibernate.orm.runtime
Interface HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitSchemaManagement
- Enclosing interface:
HibernateOrmRuntimeConfigPersistenceUnit
public static interface HibernateOrmRuntimeConfigPersistenceUnit.HibernateOrmConfigPersistenceUnitSchemaManagement
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIf Hibernate ORM should create the schemas automatically (for databases supporting them).Additional database object types to include in schema management operations.booleanWhether we should stop on the first error when applying the schema.@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) Stringstrategy()Select whether the database schema is generated or not.
-
Method Details
-
strategy
@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) @WithDefault("none") @WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String strategy()Select whether the database schema is generated or not. `drop-and-create` is awesome in development mode. This defaults to 'none'. However if Dev Services is in use and no other extensions that manage the schema are present the value will be automatically overridden to 'drop-and-create'. Accepted values: `none`, `create`, `drop-and-create`, `drop`, `update`, `validate`. -
createSchemas
@WithDefault("false") boolean createSchemas()If Hibernate ORM should create the schemas automatically (for databases supporting them). -
haltOnError
@WithDefault("false") boolean haltOnError()Whether we should stop on the first error when applying the schema. -
extraPhysicalTableTypes
Optional<@WithConverter(io.quarkus.runtime.configuration.TrimmedStringConverter.class) String> extraPhysicalTableTypes()Additional database object types to include in schema management operations. By default, Hibernate ORM only considers tables and sequences when performing schema management operations. This setting allows you to specify additional database object types that should be included, such as "MATERIALIZED VIEW", "VIEW", or other database-specific object types. The exact supported values depend on the underlying database and dialect.
-