-
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 reactive quarkus.hibernate-orm.packages not working #28576
Comments
/cc @DavideD, @FroMage, @Sanne, @gavinking, @loicmathieu |
I think Quarkus is not starting an instance of postgres because you've specified the URL. It assumes the instance is already running and when Hibernate Reactive tries to create the schema, it fails because there's not a db running. It will work if you change the property to:
I've added the prefix |
There is no problem with starting the application. If i write the %prod it starts the database with the dev mode but creates both entities. It should create just one entity and should ignore the other one because I set the This issue was fixed in the non-reactive panache but exists in the reactive: |
Ah, I see, sorry about that. |
Thanks! |
…PU explicitly (cherry picked from commit 311eb83)
…rnate Reactive (cherry picked from commit f721a0a)
Describe the bug
When I set quarkus.hibernate-orm.packages in my config file :
quarkus.hibernate-orm.packages=my.custom.entities.package
Table for entities from other package are still created in the DB at startup
Expected behavior
Entities that are declared in packages that are not in the specified package should not be created in DB.
Actual behavior
All entities from the project are created in DB
How to Reproduce?
Here is a reproducer: https://github.com/JungeMachAn/QuarkusPanachReactivePackageTest
Output of
uname -a
orver
Darwin mac-awalth.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 x86_64
Output of
java -version
openjdk version "11.0.14.1" 2022-02-08 LTS OpenJDK Runtime Environment Zulu11.54+25-CA (build 11.0.14.1+1-LTS) OpenJDK 64-Bit Server VM Zulu11.54+25-CA (build 11.0.14.1+1-LTS, mixed mode)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.13.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1
Additional information
No response
The text was updated successfully, but these errors were encountered: