@Override protected void computeRelatedMetaBean(MetaProperty prop, String beanRef) { if (beanRef != null) { prop.setMetaBean(findForId(beanRef)); } else { super.computeRelatedMetaBean(prop, beanRef); } } }
/** * Compute all known relationships for <code>beanInfo</code>. must be called * AFTER cache.cache() to avoid endless loop * * @param beanInfo * - the bean for which to compute relationships */ protected void computeRelationships(MetaBean beanInfo) { for (final MetaProperty prop : beanInfo.getProperties()) { final String beanRef = prop.getFeature(REF_BEAN_ID); computeRelatedMetaBean(prop, beanRef); } }