Package models.entities

Examples of models.entities.Contact


        if (password != null && !password.isEmpty()) {
            user.setPassword(password);
        }
        if (contactId != null) {
            try {
                Contact userContact = DaoManager.getContactDao().findById(contactId);
                user.setContact(userContact);
            } catch (DataAccessException e) {
                Logger.debug("Failed to get contact " + contactId + " from UserDto.");
            }
        }
View Full Code Here


        dto.setId(order.getId());
        dto.setState(order.getState().getName());
        dto.setDescription(order.getDescription());
        dto.setCost(order.getCost());
        dto.setClientId(order.getClient().getId());
        Contact creator = order.getCreator().getContact();
        dto.setCreatorName(creator.getLastName() + " " + creator.getFirstName()
                + (creator.getMiddleName() == null ? "" : creator.getMiddleName()));
        dto.setRecipientId(order.getRecipient().getId());
        dto.setCreatorId(order.getCreator().getId());
        dto.setExecutorId(order.getExecutor().getId());
        dto.setDeliveryManagerId(order.getDeliveryManager().getId());
        dto.setComment(order.getComment());
View Full Code Here

        dto.setId(order.getId());
        dto.setDescription(order.getDescription());
        dto.setCost(order.getCost());
        dto.setClient(order.getClient().getFirstName() + " " + order.getClient().getLastName());
        dto.setState(order.getState().getName());
        Contact recipient = order.getRecipient();
        dto.setReceiver(recipient.getFirstName() + " " + recipient.getLastName());
        String address = "Address: " + recipient.getCity() + ", " + recipient.getStreet() +
                ", " + recipient.getHouse() + "-" + recipient.getApartment();
        dto.setAddress(address);
        dto.setCreatedOn(order.getCreatedOn());
        dto.setComment(order.getComment());
        return dto;
    }
View Full Code Here

TOP

Related Classes of models.entities.Contact

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.