mark listeners for deprecated operations @Deprecated

This commit is contained in:
Gavin King 2023-08-23 10:57:00 +02:00
parent 20f8a2dbf3
commit bead7dec50
7 changed files with 21 additions and 2 deletions

View File

@ -33,7 +33,10 @@ import org.hibernate.type.Type;
* entities in response to generated replicate events.
*
* @author Steve Ebersole
*
* @deprecated since {@link org.hibernate.Session#replicate} is deprecated
*/
@Deprecated(since="6")
public class DefaultReplicateEventListener
extends AbstractSaveEventListener<ReplicationMode>
implements ReplicateEventListener {

View File

@ -15,8 +15,12 @@ import org.hibernate.event.spi.SaveOrUpdateEvent;
/**
* An event handler for save() events
*
* @author Gavin King
*
* @deprecated since {@link org.hibernate.Session#save} is deprecated
*/
@Deprecated(since="6")
public class DefaultSaveEventListener extends DefaultSaveOrUpdateEventListener {
protected Object performSaveOrUpdate(SaveOrUpdateEvent event) {

View File

@ -40,7 +40,10 @@ import org.hibernate.proxy.LazyInitializer;
*
* @author Steve Ebersole
* @author Gavin King
*
* @deprecated since {@link org.hibernate.Session#saveOrUpdate} is deprecated
*/
@Deprecated(since="6")
public class DefaultSaveOrUpdateEventListener
extends AbstractSaveEventListener<PersistContext>
implements SaveOrUpdateEventListener {

View File

@ -16,8 +16,12 @@ import org.hibernate.persister.entity.EntityPersister;
/**
* An event handler for update() events
*
* @author Gavin King
*
* @deprecated since {@link org.hibernate.Session#update} is deprecated
*/
@Deprecated(since="6")
public class DefaultUpdateEventListener extends DefaultSaveOrUpdateEventListener {
protected Object performSaveOrUpdate(SaveOrUpdateEvent event) {

View File

@ -6,8 +6,6 @@
*/
package org.hibernate.event.spi;
import java.util.Map;
import org.hibernate.HibernateException;
/**

View File

@ -7,12 +7,16 @@
package org.hibernate.event.spi;
import org.hibernate.HibernateException;
import org.hibernate.ReplicationMode;
/**
* Defines the contract for handling of replicate events generated from a session.
*
* @author Steve Ebersole
*
* @deprecated since {@link org.hibernate.Session#replicate} is deprecated
*/
@Deprecated(since="6")
public interface ReplicateEventListener {
/** Handle the given replicate event.

View File

@ -12,7 +12,10 @@ import org.hibernate.HibernateException;
* Defines the contract for handling of update events generated from a session.
*
* @author Steve Ebersole
*
* @deprecated since {@link org.hibernate.Session#saveOrUpdate} and friends are deprecated
*/
@Deprecated(since="6")
public interface SaveOrUpdateEventListener {
/**