Skip to content

Commit ae3a2f4

Browse files
committed
[#2666] Fix insert with EmbeddedId and stateless session
1 parent cf6bfc5 commit ae3a2f4

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

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

0 commit comments

Comments
 (0)