Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update DefaultReactiveListeners and Actions #1578

Merged
merged 3 commits into from
Apr 10, 2023

Conversation

gavinking
Copy link
Member

@gavinking gavinking commented Apr 9, 2023

Sync listeners and actions with changes in H6.

LOG.trace( "Ignoring uninitialized proxy" );
event.setResult( source.load( li.getEntityName(), li.getIdentifier() ) );
//EARLY EXIT!
event.setResult( source.load( lazyInitializer.getEntityName(), lazyInitializer.getInternalIdentifier() ) );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [Session.load](1) should be avoided because it has been deprecated.
((ReactiveSession) session).getReactiveActionQueue()
.registerProcess( new ReactiveEntityVerifyVersionProcess( entity ) );
final ReactiveActionQueue actionQueue = ((ReactiveSession) session).getReactiveActionQueue();
switch ( entry.getLockMode() ) {

Check warning

Code scanning / CodeQL

Missing enum case in switch

Switch statement does not have a case for [PESSIMISTIC_FORCE_INCREMENT](1). Switch statement does not have a case for [PESSIMISTIC_WRITE](2). Switch statement does not have a case for [PESSIMISTIC_READ](3). Switch statement does not have a case for [UPGRADE_SKIPLOCKED](4). Switch statement does not have a case for [UPGRADE_NOWAIT](5). Switch statement does not have a case for [WRITE](6). Switch statement does not have a case for [READ](7). Switch statement does not have a case for [NONE](8).
return fss.eventListenerGroup_PRE_DELETE.count() > 0
|| fss.eventListenerGroup_POST_DELETE.count() > 1
|| fss.eventListenerGroup_POST_DELETE.count() == 1
&& !(fss.eventListenerGroup_POST_DELETE.listeners().iterator().next()

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [EventListenerGroup.listeners](1) should be avoided because it has been deprecated.
DeleteContext transientEntities) throws HibernateException {
// cascade-delete to collections BEFORE the collection owner is deleted
return fetchLazyAssociationsBeforeCascade( CascadingActions.DELETE, persister, entity, session )
.thenCompose(
v -> new Cascade<DeleteContext>(
v -> new Cascade<>(

Check notice

Code scanning / CodeQL

Useless parameter

The parameter 'v' is never used.
persister.getPropertyValues( entity ) :
entry.getLoadedState() ),
status == Status.DELETED && !entry.isModifiableEntity()
? persister.getPropertyValues( entity )

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation

Invoking [EntityPersister.getPropertyValues](1) should be avoided because it has been deprecated.
@gavinking gavinking changed the title WIP update DefaultReactiveListeners update DefaultReactiveListeners and Actions Apr 10, 2023
@gavinking gavinking merged commit d6fa584 into hibernate:main Apr 10, 2023
@gavinking gavinking deleted the event-updates branch June 15, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant