60 questions
0
votes
0
answers
45
views
Quarkus doesn't return time values through REST endpoint
I have an entity with two LocalTimes
@Entity
@Cacheable
@Table(
name = "slot",
uniqueConstraints = {@UniqueConstraint(columnNames = {"start_time", "end_time&...
0
votes
1
answer
53
views
Hibernate Search does not update indexed embedded
I am using Postgres and Hibernate Search 7.1 in my project. But, I am facing a issue with a IndexedEmbedded in my entity.
Basically, I have 2 entities and a 1-N relationship between them. The ...
0
votes
1
answer
287
views
Quarkus with Mutiny: Seeking advice on running blocking code and context/thread management?
Goal is to execute 3 tasks in sequence: consider them like one time thing to do when the application starts - like data cleaning, transformation and load. Below is a toy example to demonstrate:
Task ...
0
votes
1
answer
100
views
PanacheEntity record update works only once
I am learning qurkus and I have a problem that I can't update a record in the db more than once.
I use merge() to update my records:
@WithTransaction
public Uni<User> update(User user) {
...
2
votes
1
answer
4k
views
Illegal pop() with non-matching JdbcValuesSourceProcessingState
I am using Quarkus reactive with hibernate reactive with a postgresql database to build a non-blocking web application.
The following code should return the availability of all vehicles stored in the ...
3
votes
3
answers
4k
views
Using Hibernate-Reactive and together R2DBC in one project
I am currently working on a project using Spring-Webflux and R2DBC. I am using an OracleDB 19c and corresponding drivers for R2DBC. Since Hibernate went reactive I want to try it in the existing ...
0
votes
1
answer
620
views
Why does the hibernate(reactive) naming strategy in quarkus override the annotation @jakarta.persistence.Table
In Quarkus, you can configure Hibernate's physical naming strategy using the property quarkus.hibernate-orm.physical-naming-strategy. If you set this property to org.hibernate.boot.model.naming....
0
votes
1
answer
447
views
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 ...
0
votes
1
answer
251
views
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 ...
0
votes
1
answer
658
views
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<ResultEntity> saveResult(...
3
votes
0
answers
1k
views
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 ...
1
vote
1
answer
499
views
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 ...
2
votes
1
answer
1k
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), ...
2
votes
1
answer
772
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
1k
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
518
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....
2
votes
1
answer
1k
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 ...
1
vote
2
answers
6k
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, ...
0
votes
0
answers
726
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 ...
1
vote
1
answer
454
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
...
2
votes
0
answers
323
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
971
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")....
1
vote
0
answers
263
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
351
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....
1
vote
2
answers
2k
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 ...