HHH-5879 expose getPropertyColumnUpdateable getPropertyColumnInsertable

This commit is contained in:
Emmanuel Bernard 2011-01-27 18:15:41 -06:00
parent c6d0cef046
commit d5539db522
1 changed files with 20 additions and 9 deletions

View File

@ -457,6 +457,15 @@ public abstract class AbstractEntityPersister
return rowIdName != null;
}
protected boolean[][] getPropertyColumnUpdateable() {
return propertyColumnUpdateable;
}
protected boolean[][] getPropertyColumnInsertable() {
return propertyColumnInsertable;
}
public AbstractEntityPersister(
final PersistentClass persistentClass,
final EntityRegionAccessStrategy cacheAccessStrategy,
@ -1871,13 +1880,15 @@ public abstract class AbstractEntityPersister
}
private void initDiscriminatorPropertyPath(Mapping mapping) throws MappingException {
propertyMapping.initPropertyPaths( ENTITY_CLASS,
propertyMapping.initPropertyPaths(
ENTITY_CLASS,
getDiscriminatorType(),
new String[]{getDiscriminatorColumnName()},
new String[]{getDiscriminatorColumnReaders()},
new String[]{getDiscriminatorColumnReaderTemplate()},
new String[]{getDiscriminatorFormulaTemplate()},
getFactory() );
new String[] { getDiscriminatorColumnName() },
new String[] { getDiscriminatorColumnReaders() },
new String[] { getDiscriminatorColumnReaderTemplate() },
new String[] { getDiscriminatorFormulaTemplate() },
getFactory()
);
}
protected void initPropertyPaths(Mapping mapping) throws MappingException {
@ -1909,7 +1920,7 @@ public abstract class AbstractEntityPersister
return BatchingEntityLoader.createBatchingEntityLoader(
this,
batchSize,
lockOptions,
lockOptions,
getFactory(),
loadQueryInfluencers
);
@ -2330,8 +2341,8 @@ public abstract class AbstractEntityPersister
public String getIdentitySelectString() {
//TODO: cache this in an instvar
return getFactory().getDialect().getIdentitySelectString(
getTableName(0),
getKeyColumns(0)[0],
getTableName( 0 ),
getKeyColumns( 0 )[0],
getIdentifierType().sqlTypes( getFactory() )[0]
);
}