Questions tagged [hibernate-reactive]
48 questions
1
vote
0 answers
Where to define SSL connection with Hibernate reactive
I'm running spring webflux app with Hibernate reactive defined like wise:
EntityManagerFactory emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, hibernateReactiveProperties());
Mutiny.SessionFactory reactiveSessionFactory =…

Guy Assaf
- 888
- 9
- 24
1
vote
2 answers
Quarkus: How to change a method from imperative to reactive
I build a small Rest API to understand more about the Quarkus framework. Now I would like to start using the framework with its reactive API but I'm struggling to understand some concepts. Currently the project is using RESTEasy Reactive with…

Rene Nochebuena
- 70
- 9
1
vote
1 answer
Merge parent and child one to many in spring web flux using mono, parent updating and child not update?
public void update(AdmWeightageDefinitionDBO t) {
sessionFactory.withTransaction((session, tx) -> session.merge(t)).subscribeAsCompletionStage();
}

user12210536
- 11
- 1
1
vote
2 answers
How to access reactive Panache Entity Session Manager from a websocket endpoint? (Quarkus, Mutiny, Panache, Reactive)
I am trying to build an example application where messages can be saved to a db, then when a websocket connects with the sessionId those messages are saved under, they are all sent out.
Here is my code:
Message.java
---
package…

chamoK
- 96
- 1
- 5
1
vote
0 answers
Hibernate reactive sesion factory intialization error in a Vertx/Spring integration application
I created a simple Spring/Vertx integration example application and add Hibernate Reactive to replace the existing Postgres Reactive Client API.
Source codes: https://github.com/hantsy/vertx-sandbox/blob/master/mutiny-spring-hibernate
When running…

Hantsy
- 8,006
- 7
- 64
- 109
1
vote
2 answers
Quarkus Hibernate Reactive panache mysql
I am trying to build a small app with Reactive jackson hibernate panache mysql as DB.
I am getting the below error.
"stackTrace": "java.lang.IllegalStateException: No pool has been
defined for persistence unit…

ajith kumar
- 91
- 2
- 5
1
vote
1 answer
Quarkus failed to start when database generation set to update in quarkus-hibernate-reactive
Working with quarkus-hibernate-reactive i caught an error(Stacktrace shown below). The error occured when i set the property quarkus.hibernate-orm.database.generation=update to update. drop-and-create working…

jithset
- 63
- 2
- 9
0
votes
0 answers
Micronaut Hibernate Reactive: Issues with 'findAllBy' when using a property whose name is a part of another property's name
I'm writing a new version of a Service previously written using Spring Boot using micronaut, and currently I'm porting existing entities and I have come across this issue, seems that ReactorCrudRepository misbehaves when I have a property whose name…

dttz
- 13
- 3
0
votes
0 answers
Hibernate reactive requests timout, connections are never released
I am using Hibernate reactive in combination with Spring WebFlux, recently I started to receive a lot of issues with connections not being closed which results in timeouts when I try to perform the request to the db.
I am…

Dmytro Kostyushko
- 359
- 3
- 13
0
votes
1 answer
SQL inspection/injection in Hibernate Reactive
Hibernate allows to inspect every SQL command and possibly returning a different SQL command before it is executed, thankfully to the StatementInspector SPI.
In our (blocking) Spring Web App we are using it to implement multi-tenancy at row level.…

SGiux
- 619
- 3
- 10
- 34
0
votes
1 answer
Quarkus Hibernate Reactive - Transaction not executed (subscribed to) inside an event handler
I am using Hibernate Reactive with Panache.
I have the following event handler:
@ConsumeEvent(value = "save-result")
@ReactiveTransactional
public Uni saveResult(ResultMessage msg) {
ResultEntity result=…

S. D.
- 788
- 5
- 15
0
votes
1 answer
Hibernate Reactive NoClassDefFound for "org.hibernate.engine.spi.ComparableExecutable" class after migrating to 2.0.0.Final
I recently upgraded the hibernate-reactive to the newest version and struggling to fix the issue with NoClassDedfFound, I tried to follow the example from the github docs, here is the list of my dependencies used for rds persistence
// rds reactive…

Dmytro Kostyushko
- 359
- 3
- 13
0
votes
0 answers
How do I create an entity with multiple parent entities using Hibernate reactive?
I'm trying to create a data model using hibernate reactive where one entity owns two other entities and each of those two entities have a one-to-many relationship with a fourth entity. Here is an example of how the tables would be set…

jf743
- 13
- 2
0
votes
1 answer
Why lazy loading in Hibernate Reactive cannot be transparent?
I was reading the doc of Hibernate Reactive and I encountered this statement:
"In Hibernate Reactive, on the other hand, lazy association fetching is an asynchronous process that produces a result via a CompletionStage (or Uni).
Therefore, lazy…

SGiux
- 619
- 3
- 10
- 34
0
votes
2 answers
Fetch specific columns dynamically
I have the following User entity:
public class User extends PanacheEntityBase{
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "DataIdGenerator")
@Column(name = "id")
public Long id;
public String name;
…

Heldoe
- 1