FIX: load all props from cache when inheritance is involved (#1366)

This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2018-04-27 14:44:18 +12:00
1 parent 756f867ed2
commit 49d9d88fbe
5 files changed
+146

No files matched your search

@@ -15,6 +15,10 @@ public class CachedBeanDataToBean {
EntityBeanIntercept ebi = bean._ebean_getIntercept();
BeanProperty idProperty = desc.getIdProperty();
if (desc.getInheritInfo() != null) {
desc = desc.getInheritInfo().readType(bean.getClass()).desc();
}
if (idProperty != null) {
// load the id property
loadProperty(bean, cacheBeanData, ebi, idProperty, context);