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
source share