* Example of how to use DSL where all references to DTO and Entity is via a string
* key, which is resolved through extensible bean factory.
*/
public void byReference() {
final ExtensibleBeanFactory bf = new SimpleMapExtensibleBeanFactory();
final com.inspiresoftware.lib.dto.geda.dsl.Registry registry = Registries.registry(bf);
bf.registerDto("myDto", MyDtoClass.class.getCanonicalName());
bf.registerEntity("myEntity", MyEntityClass.class.getCanonicalName(), MyEntity.class.getCanonicalName());
bf.registerDto("myDtoField3Dto", MyDtoField3Class.class.getCanonicalName());
bf.registerEntity("myEntityField3Entity", MyEntityField3Class.class.getCanonicalName(), MyEntityField3Class.class.getCanonicalName());
bf.registerDto("field4ParentDto", MyDtoField4Class.class.getCanonicalName());
bf.registerEntity("field4ParentEntity", MyEntityField4Class.class.getCanonicalName(), MyEntityField4Class.class.getCanonicalName());
bf.registerEntity("field2", MyEntityField2Class.class.getCanonicalName(), MyEntityField2Class.class.getCanonicalName());
registry
// main mapping
.dto("myDto").forEntity("myEntity")
// field 1