HHH-8984 Reintroduce the previous EntityEntry constructor as a deprecated delegate (for stable branches only)
This commit is contained in:
parent
db2a38f5e2
commit
5fa642ff72
|
@ -29,6 +29,7 @@ import java.io.ObjectOutputStream;
|
|||
import java.io.Serializable;
|
||||
|
||||
import org.hibernate.CustomEntityDirtinessStrategy;
|
||||
import org.hibernate.EntityMode;
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Session;
|
||||
|
@ -59,6 +60,29 @@ public final class EntityEntry implements Serializable {
|
|||
private final transient Object rowId;
|
||||
private final transient PersistenceContext persistenceContext;
|
||||
|
||||
/**
|
||||
* @deprecated the tenantId and entityMode parameters where removed: this constructor accepts but ignores them.
|
||||
* Use the other constructor!
|
||||
*/
|
||||
@Deprecated
|
||||
public EntityEntry(
|
||||
final Status status,
|
||||
final Object[] loadedState,
|
||||
final Object rowId,
|
||||
final Serializable id,
|
||||
final Object version,
|
||||
final LockMode lockMode,
|
||||
final boolean existsInDatabase,
|
||||
final EntityPersister persister,
|
||||
final EntityMode entityMode,
|
||||
final String tenantId,
|
||||
final boolean disableVersionIncrement,
|
||||
final boolean lazyPropertiesAreUnfetched,
|
||||
final PersistenceContext persistenceContext) {
|
||||
this( status, loadedState, rowId, id, version, lockMode, existsInDatabase,
|
||||
persister,disableVersionIncrement, lazyPropertiesAreUnfetched, persistenceContext );
|
||||
}
|
||||
|
||||
public EntityEntry(
|
||||
final Status status,
|
||||
final Object[] loadedState,
|
||||
|
|
Loading…
Reference in New Issue