4170. EPMO Open Source Coordination Office Redaction File Detail Report

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

4170.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:19 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 PurposeOfUse.java Fri Apr 21 20:03:30 2017 UTC

4170.2 Comparison summary

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

4170.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

4170.4 Active regular expressions

No regular expressions were active.

4170.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 = "PURPO SE_OF_USE" )
        26   @NamedQuer ies({
        27                    @Nam edQuery(na me = "Purp oseOfUse.f indAll", q uery = "SE LECT p FRO M PurposeO fUse p"),
        28                    @Nam edQuery(na me = "Purp oseOfUse.f indByPouId ", query =  "SELECT p  FROM Purp oseOfUse p  WHERE p.p ouId = :po uId"),
        29                    @Nam edQuery(na me = "Purp oseOfUse.f indByPouVa lue", quer y = "SELEC T p FROM P urposeOfUs e p WHERE  p.pouValue  = :pouVal ue"),
        30                    @Nam edQuery(na me = "Purp oseOfUse.f indByUrn",  query = " SELECT p F ROM Purpos eOfUse p W HERE p.urn  = :urn")  })
        31   public cla ss Purpose OfUse impl ements Ser ializable  {
        32           pr ivate stat ic final l ong serial VersionUID  = 1L;
        33           @I d
        34           @G eneratedVa lue(strate gy = Gener ationType. AUTO)
        35           @B asic(optio nal = fals e)
        36           @C olumn(name  = "POU_ID ")
        37           pr ivate Long  pouId;
        38           @B asic(optio nal = fals e)
        39           @C olumn(name  = "POU_VA LUE")
        40           pr ivate Stri ng pouValu e;
        41           @B asic(optio nal = fals e)
        42           @C olumn(name  = "URN")
        43           pr ivate Stri ng urn;
        44  
        45           pu blic Purpo seOfUse()  {
        46           }
        47  
        48           pu blic Purpo seOfUse(fi nal Long p ouId) {
        49                    this .pouId = p ouId;
        50           }
        51  
        52           pu blic Purpo seOfUse(fi nal Long p ouId, fina l String p ouValue,
        53                             final  String urn ) {
        54                    this .pouId = p ouId;
        55                    this .pouValue  = pouValue ;
        56                    this .urn = urn ;
        57           }
        58  
        59           @O verride
        60           pu blic boole an equals( final Obje ct object)  {
        61                    // T ODO: Warni ng - this  method won 't work in  the case  the id fie lds are
        62                    // n ot set
        63                    if ( !(object i nstanceof  PurposeOfU se)) {
        64                             return  false;
        65                    }
        66                    fina l PurposeO fUse other  = (Purpos eOfUse) ob ject;
        67                    if ( ((this.pou Id == null ) && (othe r.pouId !=  null))
        68                                      || ((thi s.pouId !=  null) &&  !this.pouI d.equals(o ther.pouId ))) {
        69                             return  false;
        70                    }
        71                    retu rn true;
        72           }
        73  
        74           pu blic Long  getPouId()  {
        75                    retu rn this.po uId;
        76           }
        77  
        78           pu blic Strin g getPouVa lue() {
        79                    retu rn this.po uValue;
        80           }
        81  
        82           pu blic Strin g getUrn()  {
        83                    retu rn this.ur n;
        84           }
        85  
        86           @O verride
        87           pu blic int h ashCode()  {
        88                    int  hash = 0;
        89                    hash  += (this. pouId != n ull ? this .pouId.has hCode() :  0);
        90                    retu rn hash;
        91           }
        92  
        93           pu blic void  setPouId(f inal Long  pouId) {
        94                    this .pouId = p ouId;
        95           }
        96  
        97           pu blic void  setPouValu e(final St ring pouVa lue) {
        98                    this .pouValue  = pouValue ;
        99           }
        100  
        101           pu blic void  setUrn(fin al String  urn) {
        102                    this .urn = urn ;
        103           }
        104  
        105           @O verride
        106           pu blic Strin g toString () {
        107                    retu rn "gov.va .med.vler. nhin.vap.p ip.entitie s.PurposeO fUse[pouId ="
        108                                      + this.p ouId + "]" ;
        109           }
        110  
        111   }