#631 - With find by id query, and id value type conversion (e.g. String to Long) this does not hit L2 cache

This commit is contained in:
Robin Bygrave committed 2016-03-31 15:18:33 +13:00
1 parent 8e43ece490
commit c9b0fd708a
2 files changed
+46 -1

No files matched your search

@@ -405,7 +405,8 @@ public final class BeanDescriptorCacheHelp<T> {
}
public T beanCacheGet(SpiQuery<T> query, PersistenceContext context) {
T bean = beanCacheGetInternal(query.getId(), query.isReadOnly());
Object id = desc.convertId(query.getId());
T bean = beanCacheGetInternal(id, query.isReadOnly());
if (bean != null) {
setupContext(bean, context);
}