add a missing @Override annotations
This commit is contained in:
parent
2e97374660
commit
6a72952057
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue