Change to use enhancement for creating new entity bean instances

This commit is contained in:
Rob Bygrave
2014-04-25 15:54:07 +12:00
parent 75bcbc06e1
commit 14034ffaa0
8 changed files with 43 additions and 33 deletions
@@ -46,7 +46,7 @@ public class CachedBeanDataFromBean {
}
// create a readOnly sharable instance by copying the data
EntityBean sharableBean = desc.createBean();
EntityBean sharableBean = desc.createEntityBean();
BeanProperty idProp = desc.getIdProperty();
if (idProp != null) {
Object v = idProp.getValue(bean);