Remove EntityPersister NotYetImplementedFor6Exception

This commit is contained in:
Andrea Boriero 2021-10-06 14:23:01 +02:00 committed by Christian Beikov
parent 2200a221a7
commit 5b425f39fd
4 changed files with 19 additions and 4 deletions

View File

@ -15,7 +15,6 @@ import org.hibernate.HibernateException;
import org.hibernate.LockMode; import org.hibernate.LockMode;
import org.hibernate.LockOptions; import org.hibernate.LockOptions;
import org.hibernate.MappingException; import org.hibernate.MappingException;
import org.hibernate.NotYetImplementedFor6Exception;
import org.hibernate.bytecode.enhance.spi.interceptor.EnhancementAsProxyLazinessInterceptor; import org.hibernate.bytecode.enhance.spi.interceptor.EnhancementAsProxyLazinessInterceptor;
import org.hibernate.bytecode.spi.BytecodeEnhancementMetadata; import org.hibernate.bytecode.spi.BytecodeEnhancementMetadata;
import org.hibernate.cache.spi.access.EntityDataAccess; import org.hibernate.cache.spi.access.EntityDataAccess;
@ -155,9 +154,7 @@ public interface EntityPersister
* has multiple tables. Returns {@code null} to indicate that the entity * has multiple tables. Returns {@code null} to indicate that the entity
* does not define multiple tables * does not define multiple tables
*/ */
default SqmMultiTableMutationStrategy getSqmMultiTableMutationStrategy() { SqmMultiTableMutationStrategy getSqmMultiTableMutationStrategy();
throw new NotYetImplementedFor6Exception( getClass() );
}
default SqmMultiTableInsertStrategy getSqmMultiTableInsertStrategy() { default SqmMultiTableInsertStrategy getSqmMultiTableInsertStrategy() {
throw new NotYetImplementedFor6Exception( getClass() ); throw new NotYetImplementedFor6Exception( getClass() );

View File

@ -60,6 +60,7 @@ import org.hibernate.persister.walking.spi.CollectionElementDefinition;
import org.hibernate.persister.walking.spi.CollectionIndexDefinition; import org.hibernate.persister.walking.spi.CollectionIndexDefinition;
import org.hibernate.persister.walking.spi.EntityIdentifierDefinition; import org.hibernate.persister.walking.spi.EntityIdentifierDefinition;
import org.hibernate.sql.ast.spi.SqlAstCreationState; import org.hibernate.sql.ast.spi.SqlAstCreationState;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.sql.ast.tree.from.TableGroup; import org.hibernate.sql.ast.tree.from.TableGroup;
import org.hibernate.sql.ast.tree.predicate.Predicate; import org.hibernate.sql.ast.tree.predicate.Predicate;
import org.hibernate.tuple.entity.BytecodeEnhancementMetadataNonPojoImpl; import org.hibernate.tuple.entity.BytecodeEnhancementMetadataNonPojoImpl;
@ -138,6 +139,11 @@ public class GoofyPersisterClassProvider implements PersisterClassResolver {
return null; return null;
} }
@Override
public SqmMultiTableMutationStrategy getSqmMultiTableMutationStrategy() {
return null;
}
@Override @Override
public AttributeMapping findDeclaredAttributeMapping(String name) { public AttributeMapping findDeclaredAttributeMapping(String name) {
return null; return null;

View File

@ -55,6 +55,7 @@ import org.hibernate.persister.spi.PersisterClassResolver;
import org.hibernate.persister.spi.PersisterCreationContext; import org.hibernate.persister.spi.PersisterCreationContext;
import org.hibernate.persister.walking.spi.AttributeDefinition; import org.hibernate.persister.walking.spi.AttributeDefinition;
import org.hibernate.persister.walking.spi.EntityIdentifierDefinition; import org.hibernate.persister.walking.spi.EntityIdentifierDefinition;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.tuple.entity.BytecodeEnhancementMetadataNonPojoImpl; import org.hibernate.tuple.entity.BytecodeEnhancementMetadataNonPojoImpl;
import org.hibernate.tuple.entity.EntityMetamodel; import org.hibernate.tuple.entity.EntityMetamodel;
import org.hibernate.tuple.entity.EntityTuplizer; import org.hibernate.tuple.entity.EntityTuplizer;
@ -162,6 +163,11 @@ public class PersisterClassProviderTest {
return null; return null;
} }
@Override
public SqmMultiTableMutationStrategy getSqmMultiTableMutationStrategy() {
return null;
}
@Override @Override
public AttributeMapping findDeclaredAttributeMapping(String name) { public AttributeMapping findDeclaredAttributeMapping(String name) {
return null; return null;

View File

@ -55,6 +55,7 @@ import org.hibernate.persister.entity.EntityPersister;
import org.hibernate.persister.spi.PersisterCreationContext; import org.hibernate.persister.spi.PersisterCreationContext;
import org.hibernate.persister.walking.spi.AttributeDefinition; import org.hibernate.persister.walking.spi.AttributeDefinition;
import org.hibernate.persister.walking.spi.EntityIdentifierDefinition; import org.hibernate.persister.walking.spi.EntityIdentifierDefinition;
import org.hibernate.query.sqm.mutation.spi.SqmMultiTableMutationStrategy;
import org.hibernate.tuple.entity.BytecodeEnhancementMetadataNonPojoImpl; import org.hibernate.tuple.entity.BytecodeEnhancementMetadataNonPojoImpl;
import org.hibernate.tuple.entity.EntityMetamodel; import org.hibernate.tuple.entity.EntityMetamodel;
import org.hibernate.tuple.entity.EntityTuplizer; import org.hibernate.tuple.entity.EntityTuplizer;
@ -120,6 +121,11 @@ public class CustomPersister implements EntityPersister {
return Custom.class.getName(); return Custom.class.getName();
} }
@Override
public SqmMultiTableMutationStrategy getSqmMultiTableMutationStrategy() {
return null;
}
@Override @Override
public AttributeMapping findDeclaredAttributeMapping(String name) { public AttributeMapping findDeclaredAttributeMapping(String name) {
return null; return null;