very minor

This commit is contained in:
Gavin King 2024-12-12 18:35:06 +01:00
parent 8782cb689e
commit 3f92cfb98e
1 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ public class BulkOperationCleanupAction implements Executable, Serializable {
);
}
final MappingMetamodelImplementor mappingMetamodel = session.getFactory().getRuntimeMetamodels().getMappingMetamodel();
final MappingMetamodelImplementor mappingMetamodel = session.getFactory().getMappingMetamodel();
final Set<String> roles = mappingMetamodel.getCollectionRolesByEntityParticipant( persister.getEntityName() );
if ( roles != null ) {
for ( String role : roles ) {
@ -149,9 +149,9 @@ public class BulkOperationCleanupAction implements Executable, Serializable {
}
for ( SqmCteStatement<?> cteStatement : statement.getCteStatements() ) {
final SqmQuery<?> cteDefinition = cteStatement.getCteDefinition();
if ( cteDefinition instanceof SqmDmlStatement<?> ) {
if ( cteDefinition instanceof SqmDmlStatement<?> dmlStatement ) {
entityPersisters.add(
metamodel.getEntityDescriptor( ( (SqmDmlStatement<?>) cteDefinition ).getTarget().getEntityName() )
metamodel.getEntityDescriptor( dmlStatement.getTarget().getEntityName() )
);
}
}