Skip to content

Commit 359428e

Browse files
committed
[#1516] Reenable LazyBasicFieldTest#testFetchBasicField
It works after the changes we made to fix the examples
1 parent 4c613ed commit 359428e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/persister/entity/impl/ReactiveAbstractEntityPersister.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,8 @@ default CompletionStage<Object> reactiveInitializeLazyPropertiesFromDatastore(
371371
statement -> getIdentifierType().nullSafeSet( statement, id, 1, session )
372372
);
373373

374-
final ReactiveSingleIdArrayLoadPlan lazySelect = reactiveGetSQLLazySelectLoadPlan( fetchGroup );
375-
376-
return lazySelect.load( id, session )
374+
return reactiveGetSQLLazySelectLoadPlan( fetchGroup )
375+
.load( id, session )
377376
.thenCompose( values -> initLazyProperty(
378377
fieldName, entity,
379378
session, entry,

integration-tests/bytecode-enhancements-it/src/test/java/org/hibernate/reactive/it/LazyBasicFieldTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.util.Collection;
99
import java.util.List;
1010

11-
import org.junit.Ignore;
1211
import org.junit.Test;
1312

1413
import io.vertx.ext.unit.TestContext;
@@ -26,7 +25,6 @@ protected Collection<Class<?>> annotatedEntities() {
2625
}
2726

2827
@Test
29-
@Ignore // see https://github.com/hibernate/hibernate-reactive/issues/1516
3028
public void testFetchBasicField(TestContext context) {
3129
final Crew emily = new Crew();
3230
emily.setId( 21L );

0 commit comments

Comments
 (0)