Skip to content

Commit 4e71e53

Browse files
committed
[#2666] Fix insert with EmbeddedId and stateless session
1 parent 1952b30 commit 4e71e53

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
@@ -440,7 +440,7 @@ private CompletionStage<?> generatedIdBeforeInsert(
440440

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

0 commit comments

Comments
 (0)