4158. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:51:18 PM Eastern Daylight 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.

4158.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:18 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-svc-consent-mgmt\src\main\java\gov\va\nvap\svc\consentmgmt\stub\data FunctionalRole.java Fri Apr 21 20:03:30 2017 UTC

4158.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 93
Removed 0 0

4158.3 Comparison options

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

4158.4 Active regular expressions

No regular expressions were active.

4158.5 Comparison detail

        1   /*
        2    * To chan ge this te mplate, ch oose Tools  | Templat es
        3    * and ope n the temp late in th e editor.
        4    */
        5  
        6   package go v.va.nvap. svc.consen tmgmt.stub .data;
        7  
        8   import jav a.io.Seria lizable;
        9  
        10   import jav ax.persist ence.Basic ;
        11   import jav ax.persist ence.Colum n;
        12   import jav ax.persist ence.Entit y;
        13   import jav ax.persist ence.Gener atedValue;
        14   import jav ax.persist ence.Gener ationType;
        15   import jav ax.persist ence.Id;
        16   import jav ax.persist ence.Named Queries;
        17   import jav ax.persist ence.Named Query;
        18   import jav ax.persist ence.Table ;
        19  
        20   /**
        21    * 
        22    * @author  vhaislegb erb
        23    */
        24   @Entity
        25   @Table(nam e = "FUNCT IONAL_ROLE ")
        26   @NamedQuer ies({
        27                    @Nam edQuery(na me = "Func tionalRole .findAll",  query = " SELECT f F ROM Functi onalRole f "),
        28                    @Nam edQuery(na me = "Func tionalRole .findByFun ctionalRol eId", quer y = "SELEC T f FROM F unctionalR ole f WHER E f.functi onalRoleId  = :functi onalRoleId "),
        29                    @Nam edQuery(na me = "Func tionalRole .findByNam e", query  = "SELECT  f FROM Fun ctionalRol e f WHERE  f.name = : name") })
        30   public cla ss Functio nalRole im plements S erializabl e {
        31           pr ivate stat ic final l ong serial VersionUID  = 1L;
        32           @I d
        33           @G eneratedVa lue(strate gy = Gener ationType. AUTO)
        34           @B asic(optio nal = fals e)
        35           @C olumn(name  = "FUNCTI ONAL_ROLE_ ID")
        36           pr ivate Long  functiona lRoleId;
        37           @C olumn(name  = "NAME")
        38           pr ivate Stri ng name;
        39  
        40           pu blic Funct ionalRole( ) {
        41           }
        42  
        43           pu blic Funct ionalRole( final Long  functiona lRoleId) {
        44                    this .functiona lRoleId =  functional RoleId;
        45           }
        46  
        47           @O verride
        48           pu blic boole an equals( final Obje ct object)  {
        49                    // T ODO: Warni ng - this  method won 't work in  the case  the id fie lds are
        50                    // n ot set
        51                    if ( !(object i nstanceof  Functional Role)) {
        52                             return  false;
        53                    }
        54                    fina l Function alRole oth er = (Func tionalRole ) object;
        55                    if ( ((this.fun ctionalRol eId == nul l) && (oth er.functio nalRoleId  != null))
        56                                      || ((thi s.function alRoleId ! = null) &&  !this.fun ctionalRol eId
        57                                                       .e quals(othe r.function alRoleId)) ) {
        58                             return  false;
        59                    }
        60                    retu rn true;
        61           }
        62  
        63           pu blic Long  getFunctio nalRoleId( ) {
        64                    retu rn this.fu nctionalRo leId;
        65           }
        66  
        67           pu blic Strin g getName( ) {
        68                    retu rn this.na me;
        69           }
        70  
        71           @O verride
        72           pu blic int h ashCode()  {
        73                    int  hash = 0;
        74                    hash  += (this. functional RoleId !=  null ? thi s.function alRoleId
        75                                      .hashCod e() : 0);
        76                    retu rn hash;
        77           }
        78  
        79           pu blic void  setFunctio nalRoleId( final Long  functiona lRoleId) {
        80                    this .functiona lRoleId =  functional RoleId;
        81           }
        82  
        83           pu blic void  setName(fi nal String  name) {
        84                    this .name = na me;
        85           }
        86  
        87           @O verride
        88           pu blic Strin g toString () {
        89                    retu rn "gov.va .med.vler. nhin.vap.p ip.entitie s.Function alRole[fun ctionalRol eId="
        90                                      + this.f unctionalR oleId + "] ";
        91           }
        92  
        93   }