hibernate-reactive
hibernate-reactive copied to clipboard
A reactive API for Hibernate ORM, supporting non-blocking database drivers and a reactive style of interaction with the database.
In `DefaultReactiveFlushEntityEventListener` there is a `checkNaturalId()` method which seems to exist only to throw an exception if the user changes an *immutable*, (i.e. *non*-updatable) natural id property of the entity....
@maxandersen has observed that the usual way to connect to test containers databases is to use a connection URI of form `jdbc:tc:postgresql:9.6.8:///databasename`. Either we: 1. convince @vietj that this is...
[There](https://github.com/hibernate/hibernate-reactive/blob/main/hibernate-reactive-core/src/main/java/org/hibernate/reactive/event/impl/AbstractReactiveSaveEventListener.java#L172) is a call to non-reactive forceFlush of `SessionImpl` that leads to UnsupportedOperationException from DefaultReactiveFlushEventListener: ``` Caused by: java.util.concurrent.CompletionException: javax.persistence.PersistenceException: org.hibernate.HibernateException: java.lang.UnsupportedOperationException at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1194) at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2309) at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:144)...
When you have an entity with a composite identifier that has an association to another entity (e.g., like in `Example 134. IdClass with @ManyToOne` in the [Hibernate User Guide](https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#identifiers-composite-nonaggregated)) then...
test disabled for now
See https://github.com/quarkusio/quarkus/issues/38948 A test is available here: https://github.com/DavideD/hibernate-reactive/commit/10ab8cdf4b757917888e9929226c462028dbeb08 The test only fails when batching is enabled. The problem is in the way we have implemented [ReactiveMutationExecutorStandard#performReactiveBatchedOperations](https://github.com/hibernate/hibernate-reactive/blob/9089e5bacd63ebcdb67b89f9c9d8827eff4cbd09/hibernate-reactive-core/src/main/java/org/hibernate/reactive/engine/jdbc/mutation/internal/ReactiveMutationExecutorStandard.java#L55). It shouldn't delegate to...
We need to document with an example how it's possible to add a custom configuration for the Vert.x SQL client. For example: ```java public class PgClientPoolConfiguration extends DefaultSqlClientPoolConfiguration { private...