mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user