-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Panache for Hibernate ORM assumes the datasource has the same name as the persistence unit #42001
Labels
area/hibernate-orm
Hibernate ORM
area/panache
area/persistence
OBSOLETE, DO NOT USE
kind/bug
Something isn't working
Milestone
Comments
quarkus-bot
bot
added
area/hibernate-orm
Hibernate ORM
area/panache
area/persistence
OBSOLETE, DO NOT USE
labels
Jul 19, 2024
/cc @FroMage (panache), @gsmet (hibernate-orm), @loicmathieu (panache) |
There is not |
I need to have a look because I obviously have no idea recollection of me adding this (thank goodness for git) |
I think we can safely just drop that check |
geoand
added a commit
that referenced
this issue
Jul 19, 2024
Remove erroneous check in AbstractJpaOperations#getSession
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jul 22, 2024
Fixes: quarkusio#42001 (cherry picked from commit 2dd89e1)
barreiro
pushed a commit
to barreiro/quarkus
that referenced
this issue
Jul 25, 2024
holly-cummins
pushed a commit
to holly-cummins/quarkus
that referenced
this issue
Jul 31, 2024
danielsoro
pushed a commit
to danielsoro/quarkus
that referenced
this issue
Sep 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/hibernate-orm
Hibernate ORM
area/panache
area/persistence
OBSOLETE, DO NOT USE
kind/bug
Something isn't working
Describe the bug
See this code:
quarkus/extensions/panache/hibernate-orm-panache-common/runtime/src/main/java/io/quarkus/hibernate/orm/panache/common/runtime/AbstractJpaOperations.java
Lines 87 to 92 in 742f226
new DataSource.DataSourceLiteral(persistentUnitName)
<= What is going on here?!As a reminder, the name of the datasource can be completely different from the name of the persistence unit.
@geoand seems this is yours; is there such a thing as too much Monster Energy? 🤔
From what I can see this was introduced to "Provide actionable information when EntityManager is not available in Hibernate Panache". Not sure why this would involve looking up the datasource...
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: