mark listeners for deprecated operations @Deprecated
This commit is contained in:
parent
20f8a2dbf3
commit
bead7dec50
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
*/
|
||||
package org.hibernate.event.spi;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue