Questions tagged [hibernate-reactive]
48 questions
8
votes
1 answer
Reactive hibernate on Quarkus with Flyway
I face a problem when trying to use Quarkus Flyway extension with Quarkus Reactive Hibernate & RESTEasy. When starting my application, I get the following error:
[io.qu.ru.Application] (Quarkus Main Thread) Failed to start application (with profile…

Chavjoh
- 466
- 5
- 13
5
votes
3 answers
quarkus-hibernate-reactive + Vert.x EventBus causes java.lang.IllegalStateException: Session/EntityManager is closed
I'm trying to use the quarkus-hibernate-reactive extension with the quarkus-vertx extension and I have issues persisting data. My project looks roughly like this:
FruitResource:
@Inject
EventBus eventBus;
@POST
public Uni create(Fruit…

user2090339
- 51
- 1
- 3
3
votes
1 answer
LazyInitializationException in Hibernate Reactive with Quarkus (Panache)
I have three entities: Interview, Question and Answer. Interview can have many Questions (and vice versa, many-to-many), Question can have many Answers (one-to-many).
I persist and fetch entities in the following…

E. Dn
- 940
- 1
- 9
- 21
2
votes
0 answers
Quarkus Hibernate Reactive Panache, No current Vertx context found on some database wrights
Using Quarkus hibernate Reactive Panache and the quarkiverse.reactivemessaging.http dependency trying to wright some data from a websocket connection into the database.
Works as expected but getting the following error on sum attempts.
Failed to…

alick
- 21
- 3
2
votes
1 answer
How to fetch lazy associations in Hibernate reactive?
I have two entities: Book and Page. Book can have many pages.
@Entity(name = "book")
@RegisterForReflection
internal data class Book (
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
val bookId: Long? =…

E. Dn
- 940
- 1
- 9
- 21
2
votes
0 answers
How can I set hibernate-reactive with application.yml or application.properties?
I want to config my datasource with application.yml or application.properties.
follow is my dependencies
dependencies {
implementation("io.vertx:vertx-mysql-client:4.2.5")
…

HongJeongHyeon
- 151
- 2
- 9
2
votes
1 answer
How to return the newly persisted entity using the reactive extensions for hibernate
I am trying to use mutiny in order to persist an entity. The add method should return a Uni referencing the newly persisted (or merged) entity (I am using the isPersistent flag to determine whether an entity was already persisted…

BigONotation
- 4,406
- 5
- 43
- 72
2
votes
1 answer
Hibernate RX insert and flush and refresh return Exception when strategy is IDENTITY
When I try hibernate rx library
and running the examples
// obtain a reactive session
factory.withTransaction(
// persist the Authors with their Books in a transaction
(session, tx) ->…

Angus Chen
- 51
- 3
1
vote
1 answer
hibernate.transaction.auto_close_session throws "Session/EntityManager is closed" when set to true
When we set hibernate.transaction.auto_close_session to true, it is throwing java.lang.IllegalStateException: Session/EntityManager is closed .
We are using hibernate 5.3.18.Final and spring 5.3.28 versions.
When we set…

Anuja
- 11
- 2
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
1 answer
Hibernate Reactive - Best practice for fetching child associations during iterating parent entities
consider the following sample. I have two entities: Author and Book. Their signatures are:
@Getter
@Setter
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "author")
public class Author implements Serializable {
@Serial
…

Tapas Bose
- 28,796
- 74
- 215
- 331
1
vote
1 answer
Spring Data r2dbc and hibernate reactive: how to configure both using only one source of configuration
I'm usin these two libraries:
org.springframework.boot:spring-boot-starter-data-r2dbc
org.hibernate.reactive:hibernate-reactive-core
It's not clear to me if I need to configure both spring.data.url and _/src/resources/META-INF/persistence.xml or…

Jordi
- 20,868
- 39
- 149
- 333
1
vote
2 answers
Using the PostgreSQL JSONB type with Hibernate Reactive
I am migrating my Quarkus project from the classic Hibernate ORM to Hibernate Reactive and I faced a problem with JSONB field mapping.
Here is the entity:
@Entity
@TypeDef(name = JsonTypes.JSON_BIN, typeClass = JsonBinaryType::class)
class MyEntity…

Ultranium
- 332
- 2
- 19
1
vote
0 answers
rollback hibernate reactive transaction
Is it possible to rollback the hibernate reactive transaction when using micronaut data hibernate reactive? Let's say we are writing a test to create a user in the db. We would like to rollback that transaction after the test completes.
Annotating…

JerryThePineapple
- 63
- 8
1
vote
1 answer
Vert.x Web , GraphQL , Hibernate Reactive
I am going to write an Api with Vert.x web and GraphQL
I have connected with the database with Hibernate reactive
public void start(final Promise startPromise)
{
try
{
vertx.executeBlocking(e ->
…

Bardia Namjoo
- 11
- 1
- 4