4207. EPMO Open Source Coordination Office Redaction File Detail Report

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

4207.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:23 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-facility\src\main\java\gov\va\nvap\svc\facility\data Location.java Fri Apr 21 20:03:30 2017 UTC

4207.2 Comparison summary

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

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

4207.4 Active regular expressions

No regular expressions were active.

4207.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.facili ty.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.JoinC olumn;
        17   import jav ax.persist ence.ManyT oOne;
        18   import jav ax.persist ence.Named Queries;
        19   import jav ax.persist ence.Named Query;
        20   import jav ax.persist ence.Table ;
        21  
        22   /**
        23    *
        24    * @author  Anand Sas try
        25    */
        26   @Entity
        27   @Table(nam e = "LOCAT ION")
        28   @NamedQuer ies({
        29                    @Nam edQuery(na me = "Loca tion.findA ll", query  = "SELECT  l FROM Lo cation l") ,
        30                    @Nam edQuery(na me = "Loca tion.findB yLocationI d", query  = "SELECT  l FROM Loc ation l WH ERE l.loca tionId = : locationId "),
        31                    @Nam edQuery(na me = "Loca tion.findB yLocationC ode", quer y = "SELEC T l FROM L ocation l  WHERE l.lo cationCode  = :locati onCode"),
        32                    @Nam edQuery(na me = "Loca tion.findB yFacility" , query =  "SELECT l  FROM Locat ion l WHER E l.facili ty = :faci lity"),
        33                    @Nam edQuery(na me = "Loca tion.findB yActive",  query = "S ELECT l FR OM Locatio n l WHERE  l.active =  :active")  })
        34   public cla ss Locatio n implemen ts Seriali zable {
        35           pr ivate stat ic final l ong serial VersionUID  = 1L;
        36           @B asic(optio nal = fals e)
        37           @C olumn(name  = "ACTIVE ")
        38           pr ivate char  active;
        39           @M anyToOne(o ptional =  false)
        40           @J oinColumn( name = "FA CILITY_ID" , referenc edColumnNa me = "FACI LITY_ID")
        41           pr ivate Faci lity facil ity;
        42           @B asic(optio nal = fals e)
        43           @C olumn(name  = "LOCATI ON_CODE")
        44           pr ivate Stri ng locatio nCode;
        45           @I d
        46           @G eneratedVa lue(strate gy = Gener ationType. AUTO)
        47           @B asic(optio nal = fals e)
        48           @C olumn(name  = "LOCATI ON_ID")
        49           pr ivate Long  locationI d;
        50  
        51           pu blic Locat ion() {
        52           }
        53  
        54           pu blic Locat ion(final  Long locat ionId) {
        55                    this .locationI d = locati onId;
        56           }
        57  
        58           @O verride
        59           pu blic boole an equals( final Obje ct object)  {
        60                    // T ODO: Warni ng - this  method won 't work in  the case  the id fie lds are
        61                    // n ot set
        62                    if ( !(object i nstanceof  Location))  {
        63                             return  false;
        64                    }
        65                    fina l Location  other = ( Location)  object;
        66                    if ( ((this.loc ationId ==  null) &&  (other.loc ationId !=  null))
        67                                      || ((thi s.location Id != null ) && !this .locationI d
        68                                                       .e quals(othe r.location Id))) {
        69                             return  false;
        70                    }
        71                    retu rn true;
        72           }
        73  
        74           pu blic char  getActive( ) {
        75                    retu rn this.ac tive;
        76           }
        77  
        78           pu blic Facil ity getFac ility() {
        79                    retu rn this.fa cility;
        80           }
        81  
        82           pu blic Strin g getLocat ionCode()  {
        83                    retu rn this.lo cationCode ;
        84           }
        85  
        86           pu blic Long  getLocatio nId() {
        87                    retu rn this.lo cationId;
        88           }
        89  
        90           @O verride
        91           pu blic int h ashCode()  {
        92                    int  hash = 0;
        93                    hash  += (this. locationId  != null ?  this.loca tionId.has hCode() :  0);
        94                    retu rn hash;
        95           }
        96  
        97           pu blic void  setActive( final char  active) {
        98                    this .active =  active;
        99           }
        100  
        101           pu blic void  setFacilit y(final Fa cility fac ility) {
        102                    this .facility  = facility ;
        103           }
        104  
        105           pu blic void  setLocatio nCode(fina l String l ocationCod e) {
        106                    this .locationC ode = loca tionCode;
        107           }
        108  
        109           pu blic void  setLocatio nId(final  Long locat ionId) {
        110                    this .locationI d = locati onId;
        111           }
        112  
        113           @O verride
        114           pu blic Strin g toString () {
        115                    retu rn "gov.va .nvap.svc. facility.d ata.Locati on[locatio nId="
        116                                      + this.l ocationId  + "]";
        117           }
        118  
        119   }