public Object convertToEntity(final Object object, final Object oldEntity, final BeanFactory beanFactory) {
((Map) oldEntity).put("virtual5", object);
return null;
}
});
conv.put("parentFieldEntityById", new EntityRetriever() {
public Object retrieveByPrimaryKey(final Class entityInterface, final Class entityClass, final Object primaryKey) {
final MyEntityField4Class parent = new MyEntityField4Class();
parent.setId(99L);
parent.setSubField1("Parent 99");
return parent;