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

This commit is contained in:
Roland Praml
2018-04-27 14:44:18 +12:00
committed by Rob Bygrave
parent 756f867ed2
commit 49d9d88fbe
5 changed files with 146 additions and 0 deletions
@@ -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);