Package com.expositds.ars.dao.entity.user

Examples of com.expositds.ars.dao.entity.user.PersonalCustomerEntity


      result = corporateCustomerEntity;
    }

    if (source instanceof PersonalCustomer) {
      PersonalCustomerEntity personalCustomerEntity = new PersonalCustomerEntity();

      personalCustomerEntity.setId(source.getId());
      personalCustomerEntity.setApartment(source.getApartment());

      List<CarEntity> carEntities = DozerHelper.mapList(source.getCars(),
          CarEntity.class);
      personalCustomerEntity.setCars(carEntities);

      personalCustomerEntity.setCity(source.getCity());
      personalCustomerEntity.setCountry(source.getCountry());
      personalCustomerEntity.setEmail(source.getEmail());
      personalCustomerEntity.setHouse(source.getHouse());
      personalCustomerEntity.setHousing(source.getHousing());
      personalCustomerEntity.setName(source.getName());
      personalCustomerEntity.setPassword(source.getPassword());
      personalCustomerEntity.setPatronymic(source.getPatronymic());
      personalCustomerEntity.setPhone(source.getPhone());
      personalCustomerEntity.setProvince(source.getProvince());
      personalCustomerEntity.setRole(source.getRole());
      personalCustomerEntity.setStreet(source.getStreet());
      personalCustomerEntity.setSurname(source.getSurname());
      personalCustomerEntity.setZip(source.getZip());
      personalCustomerEntity.setBirthdate(((PersonalCustomer) source)
          .getBirthdate());
      personalCustomerEntity.setPassportRegNo(((PersonalCustomer) source)
          .getPassportRegNo());

      result = personalCustomerEntity;
    }
View Full Code Here


  @Override
  public PersonalCustomer getPersonalCustomerByPassportRegNo(
      String passportRegNo) throws WrongPassportRegNo {
    PersonalCustomer result = null;

    PersonalCustomerEntity personalCustomerEntity = personalCustomerRepository
        .findByPassportRegNo(passportRegNo);
    result = DozerHelper
        .map(personalCustomerEntity, PersonalCustomer.class);

    return result;
View Full Code Here

  // TODO: test it
  @Override
  public PersonalCustomerEntity findByPassportRegNo(String passportRegNo)
      throws WrongPassportRegNo {
    PersonalCustomerEntity result = null;

    Criterion crPassportRegNo = Restrictions.eq("passportRegNo",
        passportRegNo);
    result = (PersonalCustomerEntity) findUniqueByCriteria(crPassportRegNo);
View Full Code Here

TOP

Related Classes of com.expositds.ars.dao.entity.user.PersonalCustomerEntity

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.