Bug Collection IDs L2 cache not cleared on external sql modification of the table #1179

This commit is contained in:
Ondrej Pacay
2017-10-19 01:06:43 +02:00
parent 6ac146cabe
commit b60f1f978f
2 changed files with 77 additions and 5 deletions
@@ -678,6 +678,10 @@ final class BeanDescriptorCacheHelp<T> {
}
// any change invalidates the query cache
queryCacheClear();
// any change invalidates the collection IDs cache
for (BeanPropertyAssocOne<?> aPropertiesOneImported : propertiesOneImported) {
aPropertiesOneImported.cacheClear();
}
}
void cacheNaturalKeyPut(Object id, Object newKey) {