if (method == null)
{
log.warn("Failed to find property: " + name);
properties.put(name, new PlainProperty(name, null));
continue;
}
if (!Hibernate.isPropertyInitialized(example, name))
{
properties.put(name, new PlainProperty(name, null));
continue;
}
// This might be a lazy-collection so we need to double check
Object retval = method.invoke(example);
if (!Hibernate.isInitialized(retval))
{
properties.put(name, new PlainProperty(name, null));
continue;
}
}
properties.put(name, new H3PropertyDescriptorProperty(descriptor));