@WithTransaction defines the transaction boundary for an asynchronous Hibernate Reactive operation. Applied to a method returning Uni, it provides the reactive equivalent of @Transactional: the transaction commits only after the asynchronous result becomes available. section 7.7.2
Use it when a REST endpoint persists data through Hibernate Reactive. The surrounding method must propagate its Uni result, and work inside the pipeline must remain nonblocking, including outgoing reactive service calls. section 7.7.2
Reservation creation
Annotate ReservationResource#make with @WithTransaction and return reservation.persist(). The persistence callback can start a rental through a Uni-returning client, then replace that result with the persisted reservation. section 7.7.2
