Skip to content

Bug in DefaultReactiveLockEventListener #1947

Closed
@DavideD

Description

@DavideD

The method cascadeLock should be reactive because it calls Cascade#cascade.

The code should look something like:

final EntityEntry e = reassociate( event, entity, id, persister );
return cascadeOnLock( event, persister, entity ) .thenApply( v -> e );

instead of:

final EntityEntry e = reassociate( event, entity, id, persister );
cascadeOnLock( event, persister, entity );
return e;

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions