102. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/1/2018 12:13:17 PM Central 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.

102.1 Files compared

# Location File Last Modified
1 ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\entity Binary.java Thu Feb 22 14:27:18 2018 UTC
2 ehealth_xchange_cif.zip\NHIN_adapter\AdapterSubscriptionServiceWEB\src\main\java\gov\va\med\nhin\adapter\subscription\web\entity Binary.java Tue Feb 27 14:29:55 2018 UTC

102.2 Comparison summary

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

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

102.4 Active regular expressions

No regular expressions were active.

102.5 Comparison detail

  1   /*
  2    * To chan ge this li cense head er, choose  License H eaders in  Project Pr operties.
  3    * To chan ge this te mplate fil e, choose  Tools | Te mplates
  4    * and ope n the temp late in th e editor.
  5    */
  6   package go v.va.med.n hin.adapte r.subscrip tion.web.e ntity;
  7  
  8   import jav a.io.Seria lizable;
  9   import jav a.math.Big Decimal;
  10   import jav a.util.Dat e;
  11   import jav ax.persist ence.Basic ;
  12   import jav ax.persist ence.Colum n;
  13   import jav ax.persist ence.Entit y;
  14   import jav ax.persist ence.Gener atedValue;
  15   import jav ax.persist ence.Gener ationType;
  16   import jav ax.persist ence.Id;
  17   import jav ax.persist ence.Lob;
  18   import jav ax.persist ence.Named Queries;
  19   import jav ax.persist ence.Named Query;
  20   import jav ax.persist ence.Seque nceGenerat or;
  21   import jav ax.persist ence.Table ;
  22   import jav ax.persist ence.Tempo ral;
  23   import jav ax.persist ence.Tempo ralType;
  24   import jav ax.validat ion.constr aints.NotN ull;
  25   import jav ax.validat ion.constr aints.Size ;
  26   import jav ax.xml.bin d.annotati on.XmlRoot Element;
  27  
  28   /**
  29    *
  30    * @author   DN S      VAZQUD
  31    */
  32   @Entity
  33   @Table(nam e = "BINAR IES")
  34   @XmlRootEl ement
  35   @NamedQuer ies({
  36       @Named Query(name  = "Binary .findAll",  query = " SELECT b F ROM Binary  b")
  37       , @Nam edQuery(na me = "Bina ry.findByB inaryId",  query = "S ELECT b FR OM Binary  b WHERE b. binaryId =  :binaryId ")
  38       , @Nam edQuery(na me = "Bina ry.findByR esourceId" , query =  "SELECT b  FROM Binar y b WHERE  b.resource Id = :reso urceId")
  39       , @Nam edQuery(na me = "Bina ry.findByC reatedTime ", query =  "SELECT b  FROM Bina ry b WHERE  b.created Time = :cr eatedTime" )
  40       , @Nam edQuery(na me = "Bina ry.findByL astUpdated Time", que ry = "SELE CT b FROM  Binary b W HERE b.las tUpdatedTi me = :last UpdatedTim e")})
  41   @SequenceG enerator(n ame = "bin aryIdGener ator", seq uenceName  = "BINARY_ ID_SEQ", a llocationS ize = 1)
  42   public cla ss Binary  implements  Serializa ble
  43   {
  44       privat e static f inal long  serialVers ionUID = 1 L;
  45       // @Ma x(value=?)   @Min(val ue=?)//if  you know r ange of yo ur decimal  fields co nsider usi ng these a nnotations  to enforc e field va lidation
  46       @Id
  47       @Basic (optional  = false)
  48       @NotNu ll
  49       @Colum n(name = " BINARY_ID" )
  50       @Gener atedValue( strategy =  Generatio nType.SEQU ENCE, gene rator = "b inaryIdGen erator")
  51       privat e BigDecim al binaryI d;
  52       @Basic (optional  = false)
  53       @NotNu ll
  54       @Size( min = 1, m ax = 36)
  55       @Colum n(name = " RESOURCE_I D")
  56       privat e String r esourceId;
  57       @Basic (optional  = false)
  58       @NotNu ll
  59       @Colum n(name = " CREATED_TI ME")
  60       @Tempo ral(Tempor alType.TIM ESTAMP)
  61       privat e Date cre atedTime;
  62       @Basic (optional  = false)
  63       @NotNu ll
  64       @Colum n(name = " LAST_UPDAT ED_TIME")
  65       @Tempo ral(Tempor alType.TIM ESTAMP)
  66       privat e Date las tUpdatedTi me;
  67       @Lob
  68       @Colum n(name = " FHIR_RESOU RCE")
  69       privat e byte[] f hirResourc e;
  70  
  71       public  Binary()
  72       {
  73       }
  74  
  75       public  Binary(Bi gDecimal b inaryId)
  76       {
  77           th is.binaryI d = binary Id;
  78       }
  79  
  80       public  Binary(Bi gDecimal b inaryId, S tring reso urceId, Da te created Time, Date  lastUpdat edTime)
  81       {
  82           th is.binaryI d = binary Id;
  83           th is.resourc eId = reso urceId;
  84           th is.created Time = cre atedTime;
  85           th is.lastUpd atedTime =  lastUpdat edTime;
  86       }
  87  
  88       public  BigDecima l getBinar yId()
  89       {
  90           re turn binar yId;
  91       }
  92  
  93       public  void setB inaryId(Bi gDecimal b inaryId)
  94       {
  95           th is.binaryI d = binary Id;
  96       }
  97  
  98       public  String ge tResourceI d()
  99       {
  100           re turn resou rceId;
  101       }
  102  
  103       public  void setR esourceId( String res ourceId)
  104       {
  105           th is.resourc eId = reso urceId;
  106       }
  107  
  108       public  Date getC reatedTime ()
  109       {
  110           re turn creat edTime;
  111       }
  112  
  113       public  void setC reatedTime (Date crea tedTime)
  114       {
  115           th is.created Time = cre atedTime;
  116       }
  117  
  118       public  Date getL astUpdated Time()
  119       {
  120           re turn lastU pdatedTime ;
  121       }
  122  
  123       public  void setL astUpdated Time(Date  lastUpdate dTime)
  124       {
  125           th is.lastUpd atedTime =  lastUpdat edTime;
  126       }
  127  
  128       public  byte[] ge tFhirResou rce()
  129       {
  130           re turn fhirR esource;
  131       }
  132  
  133       public  void setF hirResourc e(byte[] f hirResourc e)
  134       {
  135           th is.fhirRes ource = fh irResource ;
  136       }
  137  
  138       @Overr ide
  139       public  int hashC ode()
  140       {
  141           in t hash = 0 ;
  142           ha sh += (bin aryId != n ull ? bina ryId.hashC ode() : 0) ;
  143           re turn hash;
  144       }
  145  
  146       @Overr ide
  147       public  boolean e quals(Obje ct object)
  148       {
  149           //  TODO: War ning - thi s method w on't work  in the cas e the id f ields are  not set
  150           if  (!(object  instanceo f Binary))  {
  151                return f alse;
  152           }
  153           Bi nary other  = (Binary )object;
  154           if  ((this.bi naryId ==  null && ot her.binary Id != null ) || (this .binaryId  != null &&  !this.bin aryId.equa ls(other.b inaryId)))  {
  155                return f alse;
  156           }
  157           re turn true;
  158       }
  159  
  160       @Overr ide
  161       public  String to String()
  162       {
  163           re turn "gov. va.med.nhi n.adapter. subscripti on.web.ent ity.Binary [ binaryId =" + binar yId + " ]" ;
  164       }
  165       
  166   }