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.
| # | 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 | Facility.java | Fri Apr 21 20:03:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 206 |
| 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 | /* | |||||
| 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 | package go v.va.nvap. svc.consen tmgmt.stub .data; | |||||
| 6 | ||||||
| 7 | import jav a.io.Seria lizable; | |||||
| 8 | import jav ax.persist ence.Basic ; | |||||
| 9 | import jav ax.persist ence.Colum n; | |||||
| 10 | import jav ax.persist ence.Entit y; | |||||
| 11 | import jav ax.persist ence.Gener atedValue; | |||||
| 12 | import jav ax.persist ence.Gener ationType; | |||||
| 13 | import jav ax.persist ence.Id; | |||||
| 14 | import jav ax.persist ence.Named Queries; | |||||
| 15 | import jav ax.persist ence.Named Query; | |||||
| 16 | import jav ax.persist ence.Table ; | |||||
| 17 | ||||||
| 18 | /** | |||||
| 19 | * | |||||
| 20 | * @author vhaislegb erb | |||||
| 21 | */ | |||||
| 22 | @Entity | |||||
| 23 | @Table(nam e = "FACIL ITY") | |||||
| 24 | @NamedQuer ies({ | |||||
| 25 | @Named Query(name = "Facili ty.findAll ", query = "SELECT f FROM Faci lity f ORD ER BY lowe r(f.facili tyName)"), | |||||
| 26 | @Named Query(name = "Facili ty.findByF acilityId" , query = "SELECT f FROM Facil ity f WHER E f.facili tyId = :fa cilityId") , | |||||
| 27 | @Named Query(name = "Facili ty.findByF acilityNam e", query = "SELECT f.facility Station FR OM Facilit y f WHERE f.facility Name = :fa cilityName "), | |||||
| 28 | @Named Query(name = "Facili ty.findByF acilitySta tion", que ry = "SELE CT f FROM Facility f WHERE f.f acilitySta tion = :fa cilityStat ion"), | |||||
| 29 | @Named Query(name = "Facili ty.findByF acilityDns ", query = "SELECT f FROM Faci lity f WHE RE f.facil ityDns = : facilityDn s"), | |||||
| 30 | @Named Query(name = "Facili ty.findByA llowed", q uery = "SE LECT f FRO M Facility f WHERE f .allowed = :allowed order by l ower(f.fac ilityName) ")}) | |||||
| 31 | public cla ss Facilit y implemen ts Seriali zable { | |||||
| 32 | ||||||
| 33 | privat e static f inal long serialVers ionUID = 1 L; | |||||
| 34 | @Basic (optional = false) | |||||
| 35 | @Colum n(name = " ALLOWED") | |||||
| 36 | privat e boolean allowed; | |||||
| 37 | @Colum n(name = " FACILITY_D NS") | |||||
| 38 | privat e String f acilityDns ; | |||||
| 39 | @Id | |||||
| 40 | @Gener atedValue( strategy = Generatio nType.AUTO ) | |||||
| 41 | @Basic (optional = false) | |||||
| 42 | @Colum n(name = " FACILITY_I D") | |||||
| 43 | privat e Long fac ilityId; | |||||
| 44 | @Colum n(name = " FACILITY_N AME") | |||||
| 45 | privat e String f acilityNam e; | |||||
| 46 | @Colum n(name = " FACILITY_S TATION") | |||||
| 47 | privat e String f acilitySta tion; | |||||
| 48 | ||||||
| 49 | @Colum n(name = " FACILITY_P HONE") | |||||
| 50 | privat e String p hone; | |||||
| 51 | ||||||
| 52 | @Colum n(name = " FACILITY_A DDRESS") | |||||
| 53 | privat e String a ddress; | |||||
| 54 | ||||||
| 55 | @Colum n(name = " FACILITY_C ITY") | |||||
| 56 | privat e String c ity; | |||||
| 57 | ||||||
| 58 | @Colum n(name = " FACILITY_S TATE") | |||||
| 59 | privat e String s tate; | |||||
| 60 | ||||||
| 61 | @Colum n(name = " FACILITY_P OSTAL_CODE ") | |||||
| 62 | privat e String p ostalCode; | |||||
| 63 | ||||||
| 64 | public Facility( ) { | |||||
| 65 | } | |||||
| 66 | ||||||
| 67 | public Facility( final Long facilityI d) { | |||||
| 68 | th is.facilit yId = faci lityId; | |||||
| 69 | } | |||||
| 70 | ||||||
| 71 | public Facility( final gov. va.nvap.sv c.facility .data.Faci lity facil ity) { | |||||
| 72 | th is.facilit yId = faci lity.getFa cilityId() ; | |||||
| 73 | th is.allowed = facilit y.getAllow ed(); | |||||
| 74 | th is.facilit yDns = fac ility.getF acilityDns (); | |||||
| 75 | th is.facilit yName = fa cility.get FacilityNa me(); | |||||
| 76 | th is.facilit yStation = facility. getFacilit yStation() ; | |||||
| 77 | th is.phone = facility. getPhone() ; | |||||
| 78 | th is.address = facilit y.getAddre ss(); | |||||
| 79 | th is.city = facility.g etCity(); | |||||
| 80 | th is.state = facility. getState() ; | |||||
| 81 | th is.postalC ode = faci lity.getPo stalCode() ; | |||||
| 82 | } | |||||
| 83 | ||||||
| 84 | public Facility( Facility f acility) { | |||||
| 85 | th is.facilit yId = faci lity.getFa cilityId() ; | |||||
| 86 | th is.allowed = facilit y.getAllow ed(); | |||||
| 87 | th is.facilit yDns = fac ility.getF acilityDns (); | |||||
| 88 | th is.facilit yName = fa cility.get FacilityNa me(); | |||||
| 89 | th is.facilit yStation = facility. getFacilit yStation() ; | |||||
| 90 | th is.phone = facility. getPhone() ; | |||||
| 91 | th is.address = facilit y.getAddre ss(); | |||||
| 92 | th is.city = facility.g etCity(); | |||||
| 93 | th is.state = facility. getState() ; | |||||
| 94 | th is.postalC ode = faci lity.getPo stalCode() ; | |||||
| 95 | } | |||||
| 96 | ||||||
| 97 | @Overr ide | |||||
| 98 | public boolean e quals(fina l Object o bject) { | |||||
| 99 | // TODO: War ning - thi s method w on't work in the cas e the id f ields are | |||||
| 100 | // not set | |||||
| 101 | if (!(object instanceo f Facility )) { | |||||
| 102 | return f alse; | |||||
| 103 | } | |||||
| 104 | fi nal Facili ty other = (Facility ) object; | |||||
| 105 | if (((this.f acilityId == null) & & (other.f acilityId != null)) | |||||
| 106 | || ((thi s.facility Id != null ) && !this .facilityI d | |||||
| 107 | .equals( other.faci lityId))) { | |||||
| 108 | return f alse; | |||||
| 109 | } | |||||
| 110 | re turn true; | |||||
| 111 | } | |||||
| 112 | ||||||
| 113 | public Boolean g etAllowed( ) { | |||||
| 114 | re turn this. allowed; | |||||
| 115 | } | |||||
| 116 | ||||||
| 117 | public String ge tFacilityD ns() { | |||||
| 118 | re turn this. facilityDn s; | |||||
| 119 | } | |||||
| 120 | ||||||
| 121 | public Long getF acilityId( ) { | |||||
| 122 | re turn this. facilityId ; | |||||
| 123 | } | |||||
| 124 | ||||||
| 125 | public String ge tFacilityN ame() { | |||||
| 126 | re turn this. facilityNa me; | |||||
| 127 | } | |||||
| 128 | ||||||
| 129 | public String ge tFacilityS tation() { | |||||
| 130 | re turn this. facilitySt ation; | |||||
| 131 | } | |||||
| 132 | ||||||
| 133 | @Overr ide | |||||
| 134 | public int hashC ode() { | |||||
| 135 | in t hash = 0 ; | |||||
| 136 | ha sh += (thi s.facility Id != null ? this.fa cilityId.h ashCode() : 0); | |||||
| 137 | re turn hash; | |||||
| 138 | } | |||||
| 139 | ||||||
| 140 | public void setA llowed(fin al Boolean allowed) { | |||||
| 141 | th is.allowed = allowed ; | |||||
| 142 | } | |||||
| 143 | ||||||
| 144 | public void setF acilityDns (final Str ing facili tyDns) { | |||||
| 145 | th is.facilit yDns = fac ilityDns; | |||||
| 146 | } | |||||
| 147 | ||||||
| 148 | public void setF acilityId( final Long facilityI d) { | |||||
| 149 | th is.facilit yId = faci lityId; | |||||
| 150 | } | |||||
| 151 | ||||||
| 152 | public void setF acilityNam e(final St ring facil ityName) { | |||||
| 153 | th is.facilit yName = fa cilityName ; | |||||
| 154 | } | |||||
| 155 | ||||||
| 156 | public void setF acilitySta tion(final String fa cilityStat ion) { | |||||
| 157 | th is.facilit yStation = facilityS tation; | |||||
| 158 | } | |||||
| 159 | ||||||
| 160 | public String ge tPhone() { | |||||
| 161 | re turn phone ; | |||||
| 162 | } | |||||
| 163 | ||||||
| 164 | public void setP hone(Strin g phone) { | |||||
| 165 | th is.phone = phone; | |||||
| 166 | } | |||||
| 167 | ||||||
| 168 | public String ge tAddress() { | |||||
| 169 | re turn addre ss; | |||||
| 170 | } | |||||
| 171 | ||||||
| 172 | public void setA ddress(Str ing addres s) { | |||||
| 173 | th is.address = address ; | |||||
| 174 | } | |||||
| 175 | ||||||
| 176 | public String ge tCity() { | |||||
| 177 | re turn city; | |||||
| 178 | } | |||||
| 179 | ||||||
| 180 | public void setC ity(String city) { | |||||
| 181 | th is.city = city; | |||||
| 182 | } | |||||
| 183 | ||||||
| 184 | public String ge tState() { | |||||
| 185 | re turn state ; | |||||
| 186 | } | |||||
| 187 | ||||||
| 188 | public void setS tate(Strin g state) { | |||||
| 189 | th is.state = state; | |||||
| 190 | } | |||||
| 191 | ||||||
| 192 | public String ge tPostalCod e() { | |||||
| 193 | re turn posta lCode; | |||||
| 194 | } | |||||
| 195 | ||||||
| 196 | public void setP ostalCode( String pos talCode) { | |||||
| 197 | th is.postalC ode = post alCode; | |||||
| 198 | } | |||||
| 199 | ||||||
| 200 | @Overr ide | |||||
| 201 | public String to String() { | |||||
| 202 | re turn "gov. va.nvap.sv c.consentm gmt.entiti es.Facilit y[facility Id=" | |||||
| 203 | + this.f acilityId + "]"; | |||||
| 204 | } | |||||
| 205 | ||||||
| 206 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.