-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add support for Hibernate's hibernate.hbm2ddl.extra_physical_table_types #49063
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?
Add support for Hibernate's hibernate.hbm2ddl.extra_physical_table_types #49063
Conversation
/cc @gsmet (hibernate-orm) |
Hi @geoand, I already closed the first one and opened this new PR |
Thanks. This PR still contains merge commits. You'll need to rebase your branch onto |
I'll do the rebase, let's not get to the same situation as before :) |
The problem is that @Chu3laMan will need to make sure not to use their branch, but the updated one only |
2e5c076
to
50e5982
Compare
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.
Looks like some unrelated changes crept in.
IMPORTANT: I rebased your branch and force-pushed. Please run git pull
before resuming work on your local clone.
@BuildStep | ||
@Produce(ServiceStartBuildItem.class) | ||
void closeBuildTimeLogging(List<DevServicesResultBuildItem> devServices) { | ||
if (devServices.isEmpty()) { | ||
((QuarkusClassLoader) Thread.currentThread().getContextClassLoader()).addCloseTask(new Runnable() { | ||
@Override | ||
public void run() { | ||
InitialConfigurator.DELAYED_HANDLER.buildTimeComplete(); | ||
} | ||
}); | ||
} | ||
} |
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.
How is this related? 🤔
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.
While it's building at the Initial JDK 17 job, It highlighted an error there when I checked that class I found there is a method duplicated which is
void closeBuildTimeLogging(List devServices)
`
@Mac quarkus % grep -n "closeBuildTimeLogging" core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java
343: // When there is no devservices build time logging is still closed at deployment classloader close #closeBuildTimeLogging
556: void closeBuildTimeLogging(List devServices) {
569: void closeBuildTimeLogging(List devServices) {
`
// Cache implementation types of nested elements | ||
List<ConfigMappingMetadata> configMappingsMetadata = ConfigMappingLoader | ||
.getConfigMappingsMetadata(mapping.getType()); | ||
for (ConfigMappingMetadata configMappingMetadata : configMappingsMetadata) { | ||
clinit.invokeStaticMethod(ENSURE_LOADED, clinit.load(configMappingMetadata.getInterfaceType().getName())); | ||
} | ||
|
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.
Same, changes in this file seem unrelated.
Status for workflow
|
Status | Name | Step | Failures | Logs | Raw logs | Build scan |
---|---|---|---|---|---|---|
✖ | Initial JDK 17 Build | Build |
Failures | Logs | Raw logs | 🔍 |
You can consult the Develocity build scans.
Failures
⚙️ Initial JDK 17 Build #
- Failing: core/deployment
! Skipped: devtools/bom-descriptor-json devtools/cli devtools/gradle/gradle-application-plugin and 878 more
📦 core/deployment
✖ Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project quarkus-core-deployment: Compilation failure
/home/runner/_work/quarkus/quarkus/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java:[569,10] method closeBuildTimeLogging(java.util.List<io.quarkus.deployment.builditem.DevServicesResultBuildItem>) is already defined in class io.quarkus.deployment.logging.LoggingResourceProcessor
Status for workflow
|
Status | Name | Step | Failures | Logs | Raw logs | Build scan |
---|---|---|---|---|---|---|
✖ | Documentation Build | Build |
Failures | Logs | Raw logs | 🚧 |
Failures
⚙️ Documentation Build #
- Failing: core/deployment
! Skipped: core/junit4-mock devtools/bom-descriptor-json devtools/cli and 1227 more
📦 core/deployment
✖ Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.14.0:compile (default-compile) on project quarkus-core-deployment: Compilation failure
/home/runner/work/quarkus/quarkus/core/deployment/src/main/java/io/quarkus/deployment/logging/LoggingResourceProcessor.java:[569,10] method closeBuildTimeLogging(java.util.List<io.quarkus.deployment.builditem.DevServicesResultBuildItem>) is already defined in class io.quarkus.deployment.logging.LoggingResourceProcessor
@Chu3laMan do you plan to push this one over the finish line? |
@Chu3laMan ping? |
Sorry for being late to reply back, I have done a cherry-pick to surpass the conflict however still getting the same issue. |
Try to rebase on a clean branch. |
This MR adds support for configuring additional database object types to be included
in schema management operations, such as materialized views or other database-specific objects.
Changes:
Example usage: quarkus.hibernate-orm.extra-physical-table-types=MATERIALIZED VIEW,VIEW
hibernate.hbm2ddl.extra_physical_table_types
#47921