mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 14:44:48 +00:00
HHH-16059 Add getters and relax scopes
extending CteInsertStrategy and CteMutationStrategy
This commit is contained in:
parent
f53a29ab12
commit
e2baceb382
@ -154,4 +154,16 @@ public int executeInsert(
|
||||
DomainQueryExecutionContext context) {
|
||||
return new CteInsertHandler( entityCteTable, sqmInsertStatement, domainParameterXref, sessionFactory ).execute( context );
|
||||
}
|
||||
|
||||
protected EntityPersister getRootDescriptor() {
|
||||
return rootDescriptor;
|
||||
}
|
||||
|
||||
protected SessionFactoryImplementor getSessionFactory() {
|
||||
return sessionFactory;
|
||||
}
|
||||
|
||||
protected CteTable getEntityCteTable() {
|
||||
return entityCteTable;
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ public int executeUpdate(
|
||||
return new CteUpdateHandler( idCteTable, sqmUpdate, domainParameterXref, this, sessionFactory ).execute( context );
|
||||
}
|
||||
|
||||
private void checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement) {
|
||||
protected void checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement) {
|
||||
final String targetEntityName = sqmStatement.getTarget().getEntityName();
|
||||
final EntityPersister targetEntityDescriptor = sessionFactory.getRuntimeMetamodels()
|
||||
.getMappingMetamodel()
|
||||
@ -124,4 +124,16 @@ private void checkMatch(SqmDeleteOrUpdateStatement<?> sqmStatement) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected EntityPersister getRootDescriptor() {
|
||||
return rootDescriptor;
|
||||
}
|
||||
|
||||
protected SessionFactoryImplementor getSessionFactory() {
|
||||
return sessionFactory;
|
||||
}
|
||||
|
||||
protected CteTable getIdCteTable() {
|
||||
return idCteTable;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user