Skip to content

Conversation

yrodiere
Copy link
Member

Second commit is the one that matters.

We used to try to derive it from the dbKind string, falling back to
attempting to interpret the Hibernate ORM "DB Product Name".

But the "DB Product Name" can only be set in situation where we have a
dbKind string already
, so the fallback is pointless.

Since the fallback also has problems (use of CommunityDatabase which is
not necessarily in the classpath), we might as well remove it.

No effect on the logic, just makes the code easier to adapt.
@yrodiere yrodiere requested a review from gsmet September 18, 2025 14:49
@quarkus-bot quarkus-bot bot added area/hibernate-orm Hibernate ORM area/hibernate-reactive Hibernate Reactive labels Sep 18, 2025
Copy link

quarkus-bot bot commented Sep 18, 2025

/cc @gsmet (hibernate-orm)

This comment has been minimized.

We used to try to derive it from the dbKind string, falling back to
attempting to interpret the Hibernate ORM "DB Product Name".

But the "DB Product Name" can only be set in situation where *we have a
dbKind string already*, so the fallback is pointless.

Since the fallback also has problems (use of CommunityDatabase which is
not necessarily in the classpath), we might as well remove it.
Copy link

quarkus-bot bot commented Sep 18, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 6eb9e8b.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@gsmet gsmet merged commit ecfa8cb into quarkusio:main Sep 19, 2025
47 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.29 - main milestone Sep 19, 2025
@gsmet gsmet modified the milestones: 3.29 - main, 3.28.1 Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NoClassDefFoundError: org/hibernate/community/dialect/CommunityDatabase when no default datasource
2 participants