Skip to content

Commit 748877b

Browse files
committed
[#2666] Fix insert with EmbeddedId and stateless session
1 parent b2b8ba2 commit 748877b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-reactive-core/src/main/java/org/hibernate/reactive/session/impl/ReactiveStatelessSessionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ private CompletionStage<?> generatedIdBeforeInsert(
441441

442442
private CompletionStage<?> generateIdForInsert(Object entity, Generator generator, ReactiveEntityPersister persister) {
443443
if ( generator instanceof ReactiveIdentifierGenerator<?> reactiveGenerator ) {
444-
return reactiveGenerator.generate( (ReactiveConnectionSupplier) this, this )
444+
return reactiveGenerator.generate( (ReactiveConnectionSupplier) this, entity )
445445
.thenApply( id -> castToIdentifierType( id, persister ) );
446446
}
447447

0 commit comments

Comments
 (0)