Package org.apache.deltaspike.data.test.domain.dto

Examples of org.apache.deltaspike.data.test.domain.dto.SimpleId


    @Override
    public Object mapResult(Simple result)
    {
        SimpleDto dto = new SimpleDto();
        dto.setId(new SimpleId(result.getId()));
        dto.setName(result.getName());
        dto.setEnabled(result.getEnabled());
        return dto;
    }
View Full Code Here


    @Override
    protected SimpleDto toDto(Simple entity)
    {
        SimpleDto dto = new SimpleDto();
        dto.setId(new SimpleId(entity.getId()));
        dto.setEnabled(entity.getEnabled());
        dto.setName(entity.getName());
        return dto;
    }
View Full Code Here

        entityManager.persist(simple);

        SimpleDto dto = new SimpleDto();
        dto.setName(name + "_updated");
        dto.setEnabled(Boolean.TRUE);
        dto.setId(new SimpleId(simple.getId()));

        // when
        dtoRepository.save(dto);
        Simple lookup = entityManager.find(Simple.class, simple.getId());
View Full Code Here

    @Override
    public Object mapResult(Simple result)
    {
        SimpleDto dto = new SimpleDto();
        dto.setId(new SimpleId(result.getId()));
        dto.setName(result.getName());
        dto.setEnabled(result.getEnabled());
        return dto;
    }
View Full Code Here

TOP

Related Classes of org.apache.deltaspike.data.test.domain.dto.SimpleId

Copyright © 2018 www.massapicom. 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.