Package org.zkybase.cmdb.dto

Examples of org.zkybase.cmdb.dto.Dto


    log.info("Posting CI: ciPath={}, dto={}", ciPath, dtoStr);
   
    // Map the DTO string to a DTO. We have to do it ourselves since @RequestBody doesn't work for interfaces.
    String ciType = getCiType(ciPath);
    Class<Dto> dtoClass = getDtoClass(ciType);
    Dto dto = (Dto) objectMapper.readValue(dtoStr, dtoClass);
    Node node = getMapper(ciType).toEntity(dto);
    getRepo(ciType).save(node);
   
    // Node now has an ID, so we can set it on the DTO. (Why am I doing this at all?)
//    Long id = node.getId();
View Full Code Here

TOP

Related Classes of org.zkybase.cmdb.dto.Dto

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.