Beispiel #1
0
  @Override
  public ArrayList<AccountTypeDTO> getAllAccountTypes() {
    List<AccountType> accountTypes =
        SearchHelper.getFacade().readAllObjects(AccountType.class, false, null);

    ArrayList<AccountTypeDTO> dtos = new ArrayList<AccountTypeDTO>();

    for (AccountType at : accountTypes) {
      AccountTypeDTO dto = new AccountTypeDTO();
      dto.setAtCode(at.getAtCode());
      dto.setMeaninig(at.getMeaning());
      dto.setDescription(at.getDescription());

      dtos.add(dto);
    }

    return dtos;
  }