-
Notifications
You must be signed in to change notification settings - Fork 3k
Add support for Hibernate's hibernate.hbm2ddl.extra_physical_table_types #49996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,5 +1,6 @@ | ||||||
package io.quarkus.hibernate.orm.runtime; | ||||||
|
||||||
import java.util.List; | ||||||
import java.util.Map; | ||||||
import java.util.Optional; | ||||||
|
||||||
|
@@ -172,6 +173,20 @@ interface HibernateOrmConfigPersistenceUnitSchemaManagement { | |||||
*/ | ||||||
@WithDefault("false") | ||||||
boolean haltOnError(); | ||||||
|
||||||
/** | ||||||
* 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. | ||||||
* | ||||||
* @asciidoclet | ||||||
*/ | ||||||
List<@WithConverter(TrimmedStringConverter.class) String> extraPhysicalTableTypes(); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tests are failing with this:
So, as weird as it sounds, I think you need to make this change:
Suggested change
... and adapt callers. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried locally however it does not work on my side. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What didn't work? This pattern is used throughout Quarkus |
||||||
} | ||||||
|
||||||
@ConfigGroup | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW this test is wrong, you should expect a
String
here. Did you run the test locally before pushing?