Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
import org.hibernate.id.enhanced.Optimizer;
import org.hibernate.id.enhanced.PooledLoOptimizer;
import org.hibernate.id.enhanced.PooledOptimizer;
import org.hibernate.reactive.id.impl.ReactiveGeneratorWrapper;
import org.hibernate.reactive.id.ReactiveIdentifierGenerator;
import org.hibernate.reactive.mutiny.Mutiny;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import io.quarkus.hibernate.reactive.SchemaUtil;
Expand All @@ -28,6 +29,7 @@ public abstract class AbstractIdOptimizerDefaultTest {
abstract Class<?> defaultOptimizerType();

@Test
@Disabled("Hibernate Reactive doesn't implement reactive optimizers, so we need to implement the feature or update the test")
public void defaults() {
assertThat(List.of(
EntityWithDefaultGenerator.class,
Expand All @@ -38,6 +40,7 @@ public void defaults() {
}

@Test
@Disabled("Hibernate Reactive doesn't implement reactive optimizers, so we need to implement the feature or update the test")
public void explicitOverrides() {
assertOptimizer(EntityWithGenericGeneratorAndPooledOptimizer.class)
.isInstanceOf(PooledOptimizer.class);
Expand All @@ -47,6 +50,7 @@ public void explicitOverrides() {

@Test
@RunOnVertxContext
@Disabled("Hibernate Reactive doesn't implement reactive optimizers, so we need to implement the feature or update the test")
public void ids(UniAsserter asserter) {
for (long i = 1; i <= 51; i++) {
long expectedId = i;
Expand All @@ -62,7 +66,7 @@ public void ids(UniAsserter asserter) {
AbstractObjectAssert<?, Optimizer> assertOptimizer(Class<?> entityType) {
return assertThat(SchemaUtil.getGenerator(entityType, SchemaUtil.mappingMetamodel(sessionFactory)))
.as("Reactive ID generator wrapper for entity type " + entityType.getSimpleName())
.asInstanceOf(InstanceOfAssertFactories.type(ReactiveGeneratorWrapper.class))
.asInstanceOf(InstanceOfAssertFactories.type(ReactiveIdentifierGenerator.class))
.extracting("generator") // Needs reflection, unfortunately the blocking generator is not exposed...
.as("Blocking ID generator for entity type " + entityType.getSimpleName())
.asInstanceOf(InstanceOfAssertFactories.type(OptimizableGenerator.class))
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@
<jacoco.version>0.8.14</jacoco.version>
<kubernetes-client.version>7.6.1</kubernetes-client.version> <!-- Please check with Java Operator SDK team before updating -->
<rest-assured.version>6.0.0</rest-assured.version>
<hibernate-orm.version>7.2.6.Final</hibernate-orm.version> <!-- WARNING when updating, also align the versions below -->
<hibernate-orm.version>7.2.7.Final</hibernate-orm.version> <!-- WARNING when updating, also align the versions below -->
<jakarta.persistence-api.version>3.2.0</jakarta.persistence-api.version> <!-- version controlled by Hibernate ORM's needs -->
<jakarta.data-api.version>1.0.1</jakarta.data-api.version> <!-- version controlled by Hibernate ORM's needs -->
<antlr.version>4.13.2</antlr.version> <!-- version controlled by Hibernate ORM's needs -->
<bytebuddy.version>1.17.8</bytebuddy.version> <!-- version controlled by Hibernate ORM's needs -->
<geolatte.version>1.10</geolatte.version> <!-- version controlled by Hibernate ORM's needs -->
<hibernate-models.version>1.0.1</hibernate-models.version> <!-- version controlled by Hibernate ORM's needs -->
<hibernate-reactive.version>3.2.5.Final</hibernate-reactive.version> <!-- highly sensitive to Hibernate ORM upgrades -->
<hibernate-reactive.version>3.2.6.Final</hibernate-reactive.version> <!-- highly sensitive to Hibernate ORM upgrades -->
<hibernate-validator.version>9.1.0.Final</hibernate-validator.version>
<hibernate-search.version>8.2.2.Final</hibernate-search.version>
<hibernate-tools.version>7.2.6.Final</hibernate-tools.version>
<hibernate-tools.version>7.2.7.Final</hibernate-tools.version>

<!-- Make sure to check compatibility between these 2 gRPC components before upgrade -->
<grpc.version>1.79.0</grpc.version> <!-- when updating, verify if following versions should not be updated too: -->
Expand Down
Loading