HHH-8984 Removing the tenantid from EntityEntry (not being used)
This commit is contained in:
parent
68113fb35b
commit
db2a38f5e2
|
@ -550,7 +550,6 @@ public class StatefulPersistenceContext implements PersistenceContext {
|
|||
lockMode,
|
||||
existsInDatabase,
|
||||
persister,
|
||||
session.getTenantIdentifier(),
|
||||
disableVersionIncrement,
|
||||
lazyPropertiesAreUnfetched,
|
||||
this
|
||||
|
|
|
@ -52,7 +52,6 @@ public final class EntityEntry implements Serializable {
|
|||
private boolean existsInDatabase;
|
||||
private Object version;
|
||||
private transient EntityPersister persister; // for convenience to save some lookups
|
||||
private final String tenantId;
|
||||
private final String entityName;
|
||||
private transient EntityKey cachedEntityKey; // cached EntityKey (lazy-initialized)
|
||||
private boolean isBeingReplicated;
|
||||
|
@ -69,7 +68,6 @@ public final class EntityEntry implements Serializable {
|
|||
final LockMode lockMode,
|
||||
final boolean existsInDatabase,
|
||||
final EntityPersister persister,
|
||||
final String tenantId,
|
||||
final boolean disableVersionIncrement,
|
||||
final boolean lazyPropertiesAreUnfetched,
|
||||
final PersistenceContext persistenceContext) {
|
||||
|
@ -87,7 +85,6 @@ public final class EntityEntry implements Serializable {
|
|||
this.isBeingReplicated=disableVersionIncrement;
|
||||
this.loadedWithLazyPropertiesUnfetched = lazyPropertiesAreUnfetched;
|
||||
this.persister=persister;
|
||||
this.tenantId = tenantId;
|
||||
this.entityName = persister == null ? null : persister.getEntityName();
|
||||
this.persistenceContext = persistenceContext;
|
||||
}
|
||||
|
@ -100,7 +97,6 @@ public final class EntityEntry implements Serializable {
|
|||
final SessionFactoryImplementor factory,
|
||||
final String entityName,
|
||||
final Serializable id,
|
||||
final String tenantId,
|
||||
final Status status,
|
||||
final Status previousStatus,
|
||||
final Object[] loadedState,
|
||||
|
@ -114,7 +110,6 @@ public final class EntityEntry implements Serializable {
|
|||
this.entityName = entityName;
|
||||
this.persister = ( factory == null ? null : factory.getEntityPersister( entityName ) );
|
||||
this.id = id;
|
||||
this.tenantId = tenantId;
|
||||
this.status = status;
|
||||
this.previousStatus = previousStatus;
|
||||
this.loadedState = loadedState;
|
||||
|
@ -396,7 +391,6 @@ public final class EntityEntry implements Serializable {
|
|||
public void serialize(ObjectOutputStream oos) throws IOException {
|
||||
oos.writeObject( entityName );
|
||||
oos.writeObject( id );
|
||||
oos.writeObject( tenantId );
|
||||
oos.writeObject( status.name() );
|
||||
oos.writeObject( (previousStatus == null ? "" : previousStatus.name()) );
|
||||
// todo : potentially look at optimizing these two arrays
|
||||
|
@ -431,7 +425,6 @@ public final class EntityEntry implements Serializable {
|
|||
( persistenceContext.getSession() == null ? null : persistenceContext.getSession().getFactory() ),
|
||||
(String) ois.readObject(),
|
||||
( Serializable ) ois.readObject(),
|
||||
(String) ois.readObject(),
|
||||
Status.valueOf( (String) ois.readObject() ),
|
||||
( ( previousStatusString = ( String ) ois.readObject() ).length() == 0 ?
|
||||
null :
|
||||
|
|
|
@ -302,7 +302,6 @@ public class EnhancerTest extends BaseUnitTestCase {
|
|||
LockMode.NONE,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
false,
|
||||
false,
|
||||
null
|
||||
|
|
|
@ -263,7 +263,6 @@ public class CustomerEnhancerTest extends BaseUnitTestCase {
|
|||
LockMode.NONE,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
false,
|
||||
false,
|
||||
null
|
||||
|
|
Loading…
Reference in New Issue