Examples of assembleEntity()


Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

        assertEquals("ID-235", dtoCode2.getId());
        assertEquals("CODE-DT1", dtoCode2.getCode());

        final EntityCatalog<EntityCatalogCode> entityCopy = new EntityCatalogClass<EntityCatalogCode>();

        assembler.assembleEntity(dto, entityCopy, adapters, new BeanFactory() {
            public Class getClazz(final String entityBeanKey) {
                if ("CatalogCode".equals(entityBeanKey)) {
                    return EntityCatalogCodeClass.class;
                } else if ("Catalog".equals(entityBeanKey)) {
                    return EntityCatalogClass.class;
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

                }
                try {
                    if (this.onEntityAssembly != null) {
                        this.onEntityAssembly.onEvent(context, dto, entity);
                    }
                    asm.assembleEntity(dto, entity, this.dtoValueConverters.getAll(), this.beanFactory);
                    entities.add((T) entity);
                    if (this.onEntityAssembled != null) {
                        this.onEntityAssembled.onEvent(context, dto, entity);
                    }
                } catch (final RuntimeException re) {
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

                }
                try {
                    if (this.onEntityAssembly != null) {
                        this.onEntityAssembly.onEvent(context, dto, entity);
                    }
                    asm.assembleEntity(dto, entity, this.adaptersRepository.getAll(), beanFactory);
                    entities.add((T) entity);
                    if (this.onEntityAssembled != null) {
                        this.onEntityAssembled.onEvent(context, dto, entity);
                    }
                } catch (final RuntimeException re) {
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

                }
                try {
                    if (this.onEntityAssembly != null) {
                        this.onEntityAssembly.onEvent(context, dto, entity);
                    }
                    asm.assembleEntity(dto, entity, this.adaptersRepository.getAll(), beanFactory);
                    entities.add((T) entity);
                    if (this.onEntityAssembled != null) {
                        this.onEntityAssembled.onEvent(context, dto, entity);
                    }
                } catch (final RuntimeException re) {
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

        dMap.getItems().put(dItem2, "itm no 2");

        dMap.getItems().remove(dItem1); // first

        assembler.assembleEntity(dMap, eMap, null, new BeanFactory() {

            public Class getClazz(final String entityBeanKey) {
                if ("entityItem".equals(entityBeanKey)) {
                    return EntityItemInterface.class;
                }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

        assertEquals("desc", dto.getDesc());

        dto.setName("Name DTO");
        dto.setDesc("Desc DTO");

        assembler.assembleEntity(dto, entity, null, null);

        assertEquals("name", entity.getName());
        assertEquals("desc", entity.getDesc());

    }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

        assertEquals(Long.valueOf(0L), dto.getMyLong());
        dto.setMyBoolean(true);
        dto.setMyLong(2L);
        assertFalse(entity.isDecided());

        assembler.assembleEntity(dto, entity, converters, null);

        assertTrue(entity.isDecided());
        assertEquals(2L, entity.getPk());

    }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

        childDto.getParent().setEntityId(0L);
        childDto.setName("child with changed parent");

        final Map<String, Object> conv = createMapWithEntityRetriever(parentEntity2, Long.valueOf(0));

        assembler.assembleEntity(childDto, childEntity, conv, createEntityBeanFactory());

        assertNotNull(childEntity.getParent());
        assertSame(parentEntity2, childEntity.getParent());
        assertEquals("child with changed parent", childEntity.getName());
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

        dto.setMyColl(coll);
        final Map<String, DtoGenericItemClass<String>> map = new HashMap<String, DtoGenericItemClass<String>>();
        map.put("m1", item);
        dto.setMyMap(map);

        assembler.assembleEntity(dto, entity, null, new BeanFactory() {

            public Class getClazz(final String entityBeanKey) {
                return null;
            }
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.assembler.Assembler.assembleEntity()

        dto.setField30("dto30");
        dto.setField31("dto31");
        dto.setField32("dto32");

        asm.assembleEntity(dto, e31, null, null);

        assertEquals(e30.getField30(), "v30");
        assertEquals(e31.getField31(), "dto31");
        assertEquals(e32.getField32(), "v32");
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.