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.CallbackRegistry;
|
||||||
import org.hibernate.jpa.event.spi.CallbackRegistryConsumer;
|
import org.hibernate.jpa.event.spi.CallbackRegistryConsumer;
|
||||||
import org.hibernate.persister.entity.EntityPersister;
|
import org.hibernate.persister.entity.EntityPersister;
|
||||||
import org.hibernate.pretty.MessageHelper;
|
|
||||||
import org.hibernate.generator.Generator;
|
import org.hibernate.generator.Generator;
|
||||||
import org.hibernate.generator.BeforeExecutionGenerator;
|
import org.hibernate.generator.BeforeExecutionGenerator;
|
||||||
import org.hibernate.type.Type;
|
import org.hibernate.type.Type;
|
||||||
|
@ -56,6 +55,7 @@ public abstract class AbstractSaveEventListener<C>
|
||||||
|
|
||||||
private CallbackRegistry callbackRegistry;
|
private CallbackRegistry callbackRegistry;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void injectCallbackRegistry(CallbackRegistry callbackRegistry) {
|
public void injectCallbackRegistry(CallbackRegistry callbackRegistry) {
|
||||||
this.callbackRegistry = callbackRegistry;
|
this.callbackRegistry = callbackRegistry;
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,6 +79,7 @@ public class DefaultDeleteEventListener implements DeleteEventListener, Callback
|
||||||
* @param event The delete event to be handled.
|
* @param event The delete event to be handled.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void onDelete(DeleteEvent event) throws HibernateException {
|
public void onDelete(DeleteEvent event) throws HibernateException {
|
||||||
onDelete( event, DeleteContext.create() );
|
onDelete( event, DeleteContext.create() );
|
||||||
}
|
}
|
||||||
|
@ -90,6 +91,7 @@ public class DefaultDeleteEventListener implements DeleteEventListener, Callback
|
||||||
* @param transientEntities The cache of entities already deleted
|
* @param transientEntities The cache of entities already deleted
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void onDelete(DeleteEvent event, DeleteContext transientEntities) throws HibernateException {
|
public void onDelete(DeleteEvent event, DeleteContext transientEntities) throws HibernateException {
|
||||||
if ( !optimizeUnloadedDelete( event ) ) {
|
if ( !optimizeUnloadedDelete( event ) ) {
|
||||||
delete( event, transientEntities );
|
delete( event, transientEntities );
|
||||||
|
|
|
@ -125,6 +125,7 @@ public class DefaultFlushEntityEventListener implements FlushEntityEventListener
|
||||||
* Flushes a single entity's state to the database, by scheduling
|
* Flushes a single entity's state to the database, by scheduling
|
||||||
* an update action, if necessary
|
* an update action, if necessary
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void onFlushEntity(FlushEntityEvent event) throws HibernateException {
|
public void onFlushEntity(FlushEntityEvent event) throws HibernateException {
|
||||||
final Object entity = event.getEntity();
|
final Object entity = event.getEntity();
|
||||||
final EntityEntry entry = event.getEntityEntry();
|
final EntityEntry entry = event.getEntityEntry();
|
||||||
|
|
|
@ -8,7 +8,6 @@ package org.hibernate.event.internal;
|
||||||
|
|
||||||
|
|
||||||
import org.hibernate.AssertionFailure;
|
import org.hibernate.AssertionFailure;
|
||||||
import org.hibernate.LockMode;
|
|
||||||
import org.hibernate.action.internal.EntityIncrementVersionProcess;
|
import org.hibernate.action.internal.EntityIncrementVersionProcess;
|
||||||
import org.hibernate.action.internal.EntityVerifyVersionProcess;
|
import org.hibernate.action.internal.EntityVerifyVersionProcess;
|
||||||
import org.hibernate.classic.Lifecycle;
|
import org.hibernate.classic.Lifecycle;
|
||||||
|
@ -18,7 +17,6 @@ import org.hibernate.event.spi.PostLoadEvent;
|
||||||
import org.hibernate.event.spi.PostLoadEventListener;
|
import org.hibernate.event.spi.PostLoadEventListener;
|
||||||
import org.hibernate.jpa.event.spi.CallbackRegistry;
|
import org.hibernate.jpa.event.spi.CallbackRegistry;
|
||||||
import org.hibernate.jpa.event.spi.CallbackRegistryConsumer;
|
import org.hibernate.jpa.event.spi.CallbackRegistryConsumer;
|
||||||
import org.hibernate.persister.entity.EntityPersister;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We do two things here:
|
* We do two things here:
|
||||||
|
|
|
@ -22,10 +22,12 @@ import org.hibernate.persister.entity.EntityPersister;
|
||||||
public class PostDeleteEventListenerStandardImpl implements PostDeleteEventListener, CallbackRegistryConsumer {
|
public class PostDeleteEventListenerStandardImpl implements PostDeleteEventListener, CallbackRegistryConsumer {
|
||||||
private CallbackRegistry callbackRegistry;
|
private CallbackRegistry callbackRegistry;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void injectCallbackRegistry(CallbackRegistry callbackRegistry) {
|
public void injectCallbackRegistry(CallbackRegistry callbackRegistry) {
|
||||||
this.callbackRegistry = callbackRegistry;
|
this.callbackRegistry = callbackRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onPostDelete(PostDeleteEvent event) {
|
public void onPostDelete(PostDeleteEvent event) {
|
||||||
Object entity = event.getEntity();
|
Object entity = event.getEntity();
|
||||||
callbackRegistry.postRemove( entity );
|
callbackRegistry.postRemove( entity );
|
||||||
|
|
Loading…
Reference in New Issue