Questions tagged [quarkus-hibernate-reactive]
24 questions
3
votes
2 answers
Using Quarkus Cache with Reactive and Mutiny correctly
I'm trying to migrate my project to Quarkus Reactive with Hibernate Reactive Panache and I'm not sure how to deal with caching.
My original method looked like this
@Transactional
@CacheResult(cacheName = "subject-cache")
public Subject…

Marian Klühspies
- 15,824
- 16
- 93
- 136
2
votes
2 answers
Cannot persist data with quarkus + hibernate reactive panache entity
I'm trying to create a Hello World application with quarkus.
I have many troubles making it work.
Here are my classes :
import java.time.Duration;
import io.quarkus.hibernate.reactive.panache.Panache;
import…

smillis12
- 111
- 5
2
votes
0 answers
Hibernate Reactive : Session is closed and times out in scheduler
I'm currently working on a scheduler to change the status(Enum) in my base every 15 seconds using @ReactiveTransactional and throws "Session is closed" and then it runs my code for just one time. I tried it with just @Transactinal too (although it's…

Xartokoptis
- 21
- 4
2
votes
0 answers
quarkus-reactive-hibernate: beans match by type, but none have matching qualifiers
I have a quarkus project with hibernate-reactive.
When I try to build, the persistant unit "datasource-cis", is not being recognized for EntityManager.
App config file:
https://github.com/anborg/ws-quarkus/blob/main/config/application.yml
The…

Espresso
- 5,378
- 4
- 35
- 66
1
vote
0 answers
Parallel queries with reactive Panache
I understand from https://github.com/quarkusio/quarkus/issues/32790 and the linked explanation that you can't have parallel unis reusing a session. From my understanding of it, you should be able to achieve the parallel aspect of it by having a…

Tiago Grosso
- 13
- 3
1
vote
0 answers
executing test case for hibernate reactive
JUnit call
@Test
void getTransferDetails() {
Transfer transferObj = transferRepository.getTransferDetails(transfer);
Assertions.assertNotNull(transferObj);
}
Repo method
public Transfer getTransferDetails(Transfer…

user1555924
- 31
- 3
1
vote
1 answer
quarkus reactive hibernate connection
I am running a test case and while executing it gives me following error
[ERROR] Errors:
[ERROR] xxRepositoryTest.getFirstxxx » Runtime java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
…

user1555924
- 31
- 3
1
vote
0 answers
Quarkus with Hibernate Reactive and Kafka bad performance
We have a quarkus application that reads messages from a kafka topic, does minor process validations (but some involve call to database), and writes in a different topic.
We're using a imperative and synchrnous approach and read that to achieve…

Cody Dunn
- 11
- 1
1
vote
0 answers
How can I do inner join query in Hibernate Panache?
Say I have the following 3 classes
@Entity
@Table(name = "tableA")
@PersistenceUnit
public class TableA{
@Id
@GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
…

Vemai Clan
- 33
- 4
0
votes
1 answer
Hibernate Reactive in Quarkus 3.2.4 give me "java.lang.ClassCastException: " in Geometry ORM mapping
I use Quarkus 3.2.4 hibernate reactive panache to define a Entity like this:
import io.quarkus.hibernate.reactive.panache.PanacheEntityBase;
import jakarta.persistence.*;
import org.locationtech.jts.geom.Point;
@Entity
@Table(name =…

James
- 25
- 4
0
votes
0 answers
MySQL error when migrating to Quarkus 3 using Hibernate Reactive Panache
I'm currently trying to migrate from Quarkus 2 to Quarkus 3.
I performed all the needed changes and the code now compiles with Quarkus 3.
I'm using Hibernate Reactive Panache with the Repository Pattern.
I have one entity that needs to fetch data…

DMaxter
- 178
- 5
- 19
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
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
How do I conditionally post using hibernate-reactive based on the result of a different NamedQuery
I have a POST operation that should only occur if the result of another NamedQuery has a row count Greater Than ">" than a known value.
I am new to Mutiny and moreso hibernate-reactive. My current catastrophe looks like this:
package…

alliancecoder
- 86
- 1
- 15
0
votes
1 answer
Hibernate reactive DTO projection issue
We started Quarkus 3 project with hibernate reactive. We tried panache implementation .project() but it is not working as expected. Is there any solution for this problem? Is possible to manually do projection or…

onelife9to5
- 21
- 3