add a missing @Override annotations

This commit is contained in:
Gavin 2023-05-09 14:10:57 +02:00 committed by Gavin King
parent 2e97374660
commit 6a72952057
5 changed files with 6 additions and 3 deletions

View File

@ -31,7 +31,6 @@ import org.hibernate.internal.CoreMessageLogger;
import org.hibernate.jpa.event.spi.CallbackRegistry;
import org.hibernate.jpa.event.spi.CallbackRegistryConsumer;
import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.pretty.MessageHelper;
import org.hibernate.generator.Generator;
import org.hibernate.generator.BeforeExecutionGenerator;
import org.hibernate.type.Type;
@ -56,6 +55,7 @@ public abstract class AbstractSaveEventListener<C>
private CallbackRegistry callbackRegistry;
@Override
public void injectCallbackRegistry(CallbackRegistry callbackRegistry) {
this.callbackRegistry = callbackRegistry;
}

View File

@ -79,6 +79,7 @@ public class DefaultDeleteEventListener implements DeleteEventListener, Callback
* @param event The delete event to be handled.
*
*/
@Override
public void onDelete(DeleteEvent event) throws HibernateException {
onDelete( event, DeleteContext.create() );
}
@ -90,6 +91,7 @@ public class DefaultDeleteEventListener implements DeleteEventListener, Callback
* @param transientEntities The cache of entities already deleted
*
*/
@Override
public void onDelete(DeleteEvent event, DeleteContext transientEntities) throws HibernateException {
if ( !optimizeUnloadedDelete( event ) ) {
delete( event, transientEntities );

View File

@ -125,6 +125,7 @@ public class DefaultFlushEntityEventListener implements FlushEntityEventListener
* Flushes a single entity's state to the database, by scheduling
* an update action, if necessary
*/
@Override
public void onFlushEntity(FlushEntityEvent event) throws HibernateException {
final Object entity = event.getEntity();
final EntityEntry entry = event.getEntityEntry();

View File

@ -8,7 +8,6 @@ package org.hibernate.event.internal;
import org.hibernate.AssertionFailure;
import org.hibernate.LockMode;
import org.hibernate.action.internal.EntityIncrementVersionProcess;
import org.hibernate.action.internal.EntityVerifyVersionProcess;
import org.hibernate.classic.Lifecycle;
@ -18,7 +17,6 @@ import org.hibernate.event.spi.PostLoadEvent;
import org.hibernate.event.spi.PostLoadEventListener;
import org.hibernate.jpa.event.spi.CallbackRegistry;
import org.hibernate.jpa.event.spi.CallbackRegistryConsumer;
import org.hibernate.persister.entity.EntityPersister;
/**
* We do two things here:

View File

@ -22,10 +22,12 @@ import org.hibernate.persister.entity.EntityPersister;
public class PostDeleteEventListenerStandardImpl implements PostDeleteEventListener, CallbackRegistryConsumer {
private CallbackRegistry callbackRegistry;
@Override
public void injectCallbackRegistry(CallbackRegistry callbackRegistry) {
this.callbackRegistry = callbackRegistry;
}
@Override
public void onPostDelete(PostDeleteEvent event) {
Object entity = event.getEntity();
callbackRegistry.postRemove( entity );