Produced by Araxis Merge on 12/20/2017 5:56:12 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\converter | RoleTypeConverter.java | Thu Dec 14 19:57:07 2017 UTC |
| 2 | Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\converter | RoleTypeConverter.java | Wed Dec 20 22:09:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 74 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.genis is2.conver ter; | |
| 2 | ||
| 3 | import org .springfra mework.cor e.convert. converter. Converter; | |
| 4 | import org .springfra mework.ste reotype.Co mponent; | |
| 5 | ||
| 6 | import gov .va.genisi s2.dto.Rol eTypeDTO; | |
| 7 | import gov .va.genisi s2.model.R oleType; | |
| 8 | ||
| 9 | /** | |
| 10 | * This cl ass is use d to conve rt RoleTyp eDTO to Ro leType ent ity and vi ce-versa. | |
| 11 | * | |
| 12 | * @author P II | |
| 13 | * | |
| 14 | */ | |
| 15 | @Component | |
| 16 | public cla ss RoleTyp eConverter implement s Converte r<RoleType , RoleType DTO> { | |
| 17 | ||
| 18 | @O verride | |
| 19 | pu blic RoleT ypeDTO con vert(RoleT ype roleTy pe) { | |
| 20 | Role TypeDTO ro leTypeDto = new Role TypeDTO(); | |
| 21 | ||
| 22 | role TypeDto.se tRoleTypeI d(roleType .getRoleTy peId()); | |
| 23 | role TypeDto.se tRoleName( roleType.g etRoleName ()); | |
| 24 | role TypeDto.se tRoleDescr iption(rol eType.getR oleDescrip tion()); | |
| 25 | ||
| 26 | retu rn roleTyp eDto; | |
| 27 | } | |
| 28 | ||
| 29 | pu blic RoleT ype conver t(RoleType DTO roleTy peDto) { | |
| 30 | Role Type roleT ype = new RoleType() ; | |
| 31 | ||
| 32 | role Type.setRo leTypeId(r oleTypeDto .getRoleTy peId()); | |
| 33 | role Type.setRo leName(rol eTypeDto.g etRoleName ()); | |
| 34 | role Type.setRo leDescript ion(roleTy peDto.getR oleDescrip tion()); | |
| 35 | ||
| 36 | retu rn roleTyp e; | |
| 37 | } | |
| 38 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.