Questions tagged [hibernate-reactive]

48 questions
0
votes
1 answer

Is there compatibility between Uni<> and Reactor's Mono<>?

I'm trying to connect Hibernate Reactive and Spring WebFlux(Project Reactor most). The problem is that Uni<>(Hibernate Reactive type) replaces Mono<> (Reactive type from Project Reactor), and from now, behaviour is not such obviously, as Project…
0
votes
1 answer

hibernate reactive error with JDBC THIN URL

I am trying to hibernate reactive with Oracle 19c. When I send URL as below, I got an error seems string limitation. How can I resolve this issue? DB URL:…
0
votes
0 answers

Quarkus - connect to muli hosts with reactive driver

I need to connect to multiple postgres hosts with hibernate-reactive As an example, with the classic jdbc driver, we can define this property to connect to our HA postgres…
0
votes
1 answer

Is it possible to use transactional observers in quarkus with reactive sql client

I'm trying to figure out if it's possible to catch transaction events like it's described here, but with the reactive client? If it's not possible I would appreciate if someone provide an example how it can be implement manually. I want to be able…
Alexey Poletaev
  • 351
  • 2
  • 7
0
votes
1 answer

hibernate reactive: keep session opened for ontToMany fields

Here my entity: @NoArgsConstructor @AllArgsConstructor @Builder @Data @Entity @Table(name = "GITTBUSUARIS") public class Usuari { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "USUARIS_ID") private…
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
1 answer

How to return failure after rollback in Mutiny Pipeline with Panache

Currently learning mutiny and transactions with hibernate-reactive. I need to save Mess Object in database and if there is a specific condition I want to roll back the transaction sending some kind of failure message as return parameter of the save…
0
votes
0 answers

Quarkus Hibernate Query Translator Bug

The following shows debug from my Quarkus app. The translated SQL is not equivalent to the HQL Query.... The logic from the BOLD section Depending on how SQL parses the and/or logic, the two are not equivalent. The following output is from my log…
R Soph
  • 11
  • 2
0
votes
0 answers

connection refused error when running all tests in a test class with micronaut hibernate reactive

When running individually test will pass, but when running all tests from the test class, test will fail with the vert.x java net connection refused exception. For reference, test class inherits from the base test class that sets up the shared…
0
votes
1 answer

How to correctly handle DTO conversion in Micronaut Reactive

Lets say we are working with Micronaut Reactive (Project Reactor) and we would like to create a user account. SignUp DTO is represented by the following Kotlin class: @Introspected data class SignUpDto( @field:Schema(example = "admin") …
0
votes
1 answer

Quarkus Panache Reactive - select single column

With the reactive version of panache I am unable to select a specific column from table using the project @Entity class Test: PanacheEntity(){ @Column(name="amount") var amount: Double = 0.0 @Column(name="name") …
0
votes
1 answer

Joining unis in Quarkus/Mutiny/Hibernate-Reactive

I am having a very confusing issue with the following quarkus/hibernate-reactive/mutiny. I'll start by describing the feature I'm implementing in Quarkus using hibernate-reactive and mutiny. a. The task is to retrieve a record from the database, …
fmatar
  • 3,490
  • 1
  • 15
  • 11
0
votes
1 answer

Detached entity issue using Hibernate with mutiny

As part of my integration tests, I am using the following code to query for an entity and then remove it from the underlying datastore: Country country =…
BigONotation
  • 4,406
  • 5
  • 43
  • 72
0
votes
1 answer

Hibernate reactive + spring boot, exceptio "Unable to locate persister"

using EntityManagerFactory emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, hibernateReactiveProperties()); Mutiny.SessionFactory reactiveSessionFactory = emf.unwrap(Mutiny.SessionFactory.class); but there are no…
Guy Assaf
  • 888
  • 9
  • 24
0
votes
1 answer

Hibernate reactive No Vert.x context active in aws rds

I randomly receive this exception within my application: HR000065: No Vert.x context active java.lang.IllegalStateException: HR000065: No Vert.x context active 2021-11-09T17:12:18.143+02:00…
0
votes
2 answers

Is there any alternative to provide user and password to Hibernate reactive without persistance.xml?

I am trying to figure out a way to provide user and password without hardcoding them on the same server. I need to fetch them through an api.