-
Notifications
You must be signed in to change notification settings - Fork 2
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
resteasy reactive in legumes #18
base: main
Are you sure you want to change the base?
Conversation
d2bfee0
to
3964f21
Compare
public void remove(final LegumeItem legume) { | ||
manager.remove(legume); | ||
public void removeLegume(final String legumeId) { | ||
find("SELECT h FROM Legume h WHERE h.id=?1", legumeId).firstResult().onItem().transform(legume -> { |
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.
Does it have to be select?
Can't you just do "delete from x where x.id = ?!"?
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.
lol, yeah.🤦🏻♂️
@@ -33,68 +33,84 @@ public class LegumeResource implements LegumeApi { | |||
@Inject | |||
MessageSender messageSender; | |||
|
|||
@Transactional | |||
public Response provision() { | |||
@WithTransaction |
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.
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.
Reactive code requires a different annotation. I got a warning message.
quarkus.datasource.username: sa | ||
quarkus.datasource.password: | ||
quarkus.datasource.jdbc.max-size: 20 | ||
#quarkus.datasource.db-kind=h2 |
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.
Commented out on purpose?
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.
there is no reactive driver support for H2
Transform the Legumes service from imperative to reactive stack... Not really sure what to do with the artemis client.