Questions tagged [hibernate-reactive]
The hibernate-reactive tag has no usage guidance.
39
questions
0
votes
1
answer
45
views
Fetch specific columns dynamically
I have the following User entity:
public class User extends PanacheEntityBase{
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "DataIdGenerator")
@Column(...
0
votes
1
answer
61
views
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), ...
0
votes
1
answer
31
views
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: "jdbc:oracle:thin:@(DESCRIPTION=(ENABLE=...
0
votes
0
answers
78
views
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 instance:
quarkus.datasource....
0
votes
1
answer
161
views
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....
0
votes
1
answer
233
views
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 ...
0
votes
1
answer
96
views
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 ...
0
votes
1
answer
154
views
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")
...
0
votes
1
answer
51
views
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....
0
votes
1
answer
68
views
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 ...
0
votes
1
answer
61
views
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 ...
0
votes
0
answers
48
views
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 ...
1
vote
1
answer
550
views
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, ...
1
vote
0
answers
142
views
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 ...
0
votes
0
answers
249
views
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 ...
0
votes
1
answer
176
views
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 ...
1
vote
1
answer
127
views
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<Void> startPromise)
{
try
...
0
votes
1
answer
462
views
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 ...
0
votes
0
answers
121
views
BaseRepository in Hibernate Reactive
How can I make baseRepository in hibernate reactive in kotlin?
I want to make a repository for all other repositories like JpaRepository.
How can I implement it?
My BaseRepository
interface ...
2
votes
0
answers
199
views
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")
...
0
votes
1
answer
664
views
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 ...
0
votes
1
answer
423
views
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 = countryRepository.findById("CH")....
2
votes
1
answer
329
views
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<Entity> referencing the newly persisted (or merged) entity (I am using the isPersistent flag to ...
1
vote
0
answers
104
views
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());
...
0
votes
1
answer
130
views
Hibernate reactive + spring boot, exceptio "Unable to locate persister"
using
EntityManagerFactory emf = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, hibernateReactiveProperties());
Mutiny.SessionFactory reactiveSessionFactory = emf.unwrap(...
0
votes
1
answer
237
views
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 at
org....
0
votes
2
answers
97
views
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.
<!-- MySQL -->
<property ...
1
vote
2
answers
1k
views
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 ...
0
votes
0
answers
413
views
Reactive hibernate with Quarkus response gives error
I am getting some weird issue in my Quarkus application while executing query not getting response.
I am using quarkus-hibernate-reactive and quarkus-reactive-client. Getting below error:
[org.jbo.res....
1
vote
1
answer
181
views
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();
}
1
vote
2
answers
1k
views
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 ...
0
votes
0
answers
190
views
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/...
1
vote
2
answers
2k
views
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
...
0
votes
1
answer
1k
views
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 ...
0
votes
2
answers
544
views
Quarkus - hibernate-reactive and multitenancy
I'm trying to develop a multitenancy app with quarkus, hibernate-reactive and postgres.
Hibernate-reactive supports multitenancy by letting implement ReactiveConnectionPool :
http://hibernate.org/...
8
votes
1
answer
3k
views
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 ...
5
votes
3
answers
2k
views
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 ...
0
votes
1
answer
765
views
Why does quarkus use hibernate reactive to operate the database and the query method does not use database connection pool
I use the quarkus framework, integrate hibernate reactive, and use the panache list method to query. I find that it do not use the connection pool, but use the connection directly. As a result, the ...
2
votes
1
answer
335
views
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
...