-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Use Mutiny event-based API in the Hibernate Reactive quickstart #612
Conversation
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.
Please don't merge yet as I need the master branch of the quickstarts to stay compatible with 1.6 until next week.
...rnate-reactive-quickstart/src/main/java/org/acme/hibernate/reactive/FruitMutinyResource.java
Outdated
Show resolved
Hide resolved
...rnate-reactive-quickstart/src/main/java/org/acme/hibernate/reactive/FruitMutinyResource.java
Outdated
Show resolved
Hide resolved
...rnate-reactive-quickstart/src/main/java/org/acme/hibernate/reactive/FruitMutinyResource.java
Outdated
Show resolved
Hide resolved
e47d85d
to
ce83683
Compare
I pushed force some changes:
I think we should also update the ORM quickstart and return a List instead of an array when we do a find: https://github.com/quarkusio/quarkus-quickstarts/blob/development/hibernate-orm-quickstart/src/main/java/org/acme/hibernate/orm/FruitResource.java#L37 I can do it but do you want me to create a new issue or I can do it in this one? Thanls |
ce83683
to
a2b2c72
Compare
No need to create an issue, but send a separate PR? |
|
...rnate-reactive-quickstart/src/main/java/org/acme/hibernate/reactive/FruitMutinyResource.java
Outdated
Show resolved
Hide resolved
Updated the return value of the |
a2b2c72
to
5e5fa03
Compare
* Inject the Session directly, unwrap from Uni * Additional tests for update and not found entities * Return Multi<Fruit> instead of Uni<Fruit[]> * Add example on how to map exceptions in the HTTP response
5e5fa03
to
f2abc7d
Compare
@DavideD if this is ready it can be merged. Do you confirm? |
I confirm |
Merged, thanks! |
WARNING: It requires this PR in Quarkus: quarkusio/quarkus#10433
Update the Hibernate Reactive quickstart so that it uses the Mutiny event-based API.
It also inject the session directly making the code simpler.
@Sanne, @gavinking Would you like to have a look?