Examples of registerEntity()


Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        final ExtensibleBeanFactory beanFactory = facade.createBeanFactory(this.getClass().getClassLoader());
        final DTOSupportAnnotationsService annotationsService = facade.getAnnService(this.getClass().getClassLoader());

        beanFactory.registerDto("SimpleDTO",
                "com.inspiresoftware.lib.dto.geda.osgi.test.SimpleDTOClass");
        beanFactory.registerEntity("SimpleEntity",
                "com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntityClass",
                "com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntity");
        beanFactory.registerDto("ComplexDTO",
                "com.inspiresoftware.lib.dto.geda.osgi.test.ComplexDTOClass");
        beanFactory.registerEntity("ComplexEntity",
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        beanFactory.registerEntity("SimpleEntity",
                "com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntityClass",
                "com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntity");
        beanFactory.registerDto("ComplexDTO",
                "com.inspiresoftware.lib.dto.geda.osgi.test.ComplexDTOClass");
        beanFactory.registerEntity("ComplexEntity",
                "com.inspiresoftware.lib.dto.geda.osgi.test.ComplexEntityClass",
                "com.inspiresoftware.lib.dto.geda.osgi.test.ComplexEntity");
        annotationsService.registerAdapter("EqualsByString", new EqualsByStringMatcher());

        final SimpleEntity inner = (SimpleEntity) beanFactory.get("SimpleEntity");
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        final ExtensibleBeanFactory beanFactory = facade.createBeanFactory(this.getClass().getClassLoader());
        final DTOSupportDSLService dslService = facade.getDSLService(this.getClass().getClassLoader());
        Registry basic = dslService.getRegistry("basic");
        if (basic == null) {

            beanFactory.registerEntity("SimpleEntity",
                    "com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntityClass",
                    "com.inspiresoftware.lib.dto.geda.osgi.test.SimpleEntity");

            basic = dslService.createRegistry("basic", beanFactory);
            basic.dto(SimpleDTOClass.class).alias("SimpleDTO").forEntityGeneric()
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        final com.inspiresoftware.lib.dto.geda.dsl.Registry registry = Registries.registry(bf);

        bf.registerDto("myDto", MyDtoClass.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
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        bf.registerDto("myDto", MyDtoClass.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(MyEntityClass.class).alias("myEntity", MyEntity.class)
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        bf.registerDto("myDto", MyDtoClass.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(MyEntityClass.class).alias("myEntity", MyEntity.class)
                // field 1
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        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());
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        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
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        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.class)
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.adapter.ExtensibleBeanFactory.registerEntity()

        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.class)
                // field 1
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.