-
Notifications
You must be signed in to change notification settings - Fork 198
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
Hibernate Reactive requires a Jdbc env? #2266
Comments
Changing application-test.yml to this:
should resolve the issue (this is what micronaut launch in 4.0.0-M3 generates as well). I think test resources don't expect url to be defined, need to have db-type so it will initialize rest of the config stuff for hibernate. |
The |
Don't think this worked with hibernate reactive 1.x either as I am getting this error when trying your config
and in hibernate reactive 2 the error you posted
because this URI
variable |
The original sample codes(3.9.3), only one example failed due to a tx issue. #1837 I tried to switch to use test-resource in data-r2dbc example, encountered another new issue. micronaut-projects/micronaut-test-resources#313 |
Ok, previous comment is maybe unrelated to this issue. My point is hibernate reactive won't support url starting with |
All my original codes used test containers directly. Ok, I cleaned up the hibernate reactive example, use test-resource instead(leave url, username, password null, and remove testcontainers), encountered the same issue. micronaut-projects/micronaut-test-resources#313 |
Close this issue. |
Expected Behavior
I tried to update my micronaut hibernate reactive to 4.0.0-M3, but the application context loading failed, it seems it requires a jdbc env.
The existing config does not work:
https://github.com/hantsy/micronaut-sandbox/blob/master/data-hibernate-reactive/src/main/resources/application.yml#L4-L15
Actual Behaviour
Steps To Reproduce
No response
Environment Information
Windows 10 Pro, Java 17
Example Application
https://github.com/hantsy/micronaut-sandbox/tree/master/data-hibernate-reactive
Version
4.0.0-M3
The text was updated successfully, but these errors were encountered: