Produced by Araxis Merge on 6/9/2017 3:51:25 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:25 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-web\src\main\java\gov\va\nvap\web\facility | 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 | 192 |
| 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 | ||||||
| 6 | package go v.va.nvap. web.facili ty; | |||||
| 7 | ||||||
| 8 | import jav a.io.Seria lizable; | |||||
| 9 | import jav ax.persist ence.Basic ; | |||||
| 10 | import jav ax.persist ence.Colum n; | |||||
| 11 | import jav ax.persist ence.Entit y; | |||||
| 12 | import jav ax.persist ence.Gener atedValue; | |||||
| 13 | import jav ax.persist ence.Gener ationType; | |||||
| 14 | import jav ax.persist ence.Id; | |||||
| 15 | import jav ax.persist ence.Named Queries; | |||||
| 16 | import jav ax.persist ence.Named Query; | |||||
| 17 | import jav ax.persist ence.Table ; | |||||
| 18 | ||||||
| 19 | /** | |||||
| 20 | * | |||||
| 21 | * @author vhaislegb erb | |||||
| 22 | */ | |||||
| 23 | @Entity | |||||
| 24 | @Table(nam e = "FACIL ITY") | |||||
| 25 | @NamedQuer ies({ | |||||
| 26 | @Nam edQuery(na me = "Faci lity.findA ll", query = "SELECT f FROM Fa cility f o rder by lo wer(f.faci lityName) asc"), | |||||
| 27 | @N amedQuery( name = "Fa cility.fin dAllSortBy Visn", que ry = "SELE CT f FROM Facility f order by f.visnId a sc, lower( f.facility Name) asc" ), | |||||
| 28 | @Nam edQuery(na me = "Faci lity.findB yFacilityI d", query = "SELECT f FROM Fac ility f WH ERE f.faci lityId = : facilityId "), | |||||
| 29 | @Nam edQuery(na me = "Faci lity.findB yFacilityN ame", quer y = "SELEC T f.facili tyStation FROM Facil ity f WHER E f.facili tyName = : facilityNa me"), | |||||
| 30 | @Nam edQuery(na me = "Faci lity.findB yFacilityS tation", q uery = "SE LECT f FRO M Facility f WHERE f .facilityS tation = : facilitySt ation"), | |||||
| 31 | @N amedQuery( name = "Fa cility.fin dByFacilit yStations" , query = "SELECT f FROM Facil ity f WHER E f.facili tyStation IN (:facil ityStation s) order b y f.visnId asc, f.fa cilityName asc"), | |||||
| 32 | @Nam edQuery(na me = "Faci lity.findB yFacilityD ns", query = "SELECT f FROM Fa cility f W HERE f.fac ilityDns = :facility Dns"), | |||||
| 33 | @Nam edQuery(na me = "Faci lity.findB yAllowed", query = " SELECT f F ROM Facili ty f WHERE f.allowed = :allowe d order by lower(f.f acilityNam e) asc") } ) | |||||
| 34 | public cla ss Facilit y 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 = "ALLOWE D") | |||||
| 38 | pr ivate bool ean allowe d; | |||||
| 39 | @C olumn(name = "FACILI TY_DNS") | |||||
| 40 | pr ivate Stri ng facilit yDns; | |||||
| 41 | @I d | |||||
| 42 | @G eneratedVa lue(strate gy = Gener ationType. AUTO) | |||||
| 43 | @B asic(optio nal = fals e) | |||||
| 44 | @C olumn(name = "FACILI TY_ID") | |||||
| 45 | pr ivate Long facilityI d; | |||||
| 46 | @C olumn(name = "FACILI TY_NAME") | |||||
| 47 | pr ivate Stri ng facilit yName; | |||||
| 48 | @C olumn(name = "FACILI TY_STATION ") | |||||
| 49 | pr ivate Stri ng facilit yStation; | |||||
| 50 | @C olumn(name = "VISN_I D") | |||||
| 51 | pr ivate Long visnId; | |||||
| 52 | ||||||
| 53 | @Colum n(name = " FACILITY_P HONE") | |||||
| 54 | privat e String p hone; | |||||
| 55 | ||||||
| 56 | @Colum n(name = " FACILITY_A DDRESS") | |||||
| 57 | privat e String a ddress; | |||||
| 58 | ||||||
| 59 | @Colum n(name = " FACILITY_C ITY") | |||||
| 60 | privat e String c ity; | |||||
| 61 | ||||||
| 62 | @Colum n(name = " FACILITY_S TATE") | |||||
| 63 | privat e String s tate; | |||||
| 64 | ||||||
| 65 | @Colum n(name = " FACILITY_P OSTAL_CODE ") | |||||
| 66 | privat e String p ostalCode; | |||||
| 67 | ||||||
| 68 | pu blic Facil ity() { | |||||
| 69 | } | |||||
| 70 | ||||||
| 71 | pu blic Facil ity(final Long facil ityId) { | |||||
| 72 | this .facilityI d = facili tyId; | |||||
| 73 | } | |||||
| 74 | ||||||
| 75 | @O verride | |||||
| 76 | pu blic boole an equals( final Obje ct object) { | |||||
| 77 | // T ODO: Warni ng - this method won 't work in the case the id fie lds are | |||||
| 78 | // n ot set | |||||
| 79 | if ( !(object i nstanceof Facility)) { | |||||
| 80 | return false; | |||||
| 81 | } | |||||
| 82 | fina l Facility other = ( Facility) object; | |||||
| 83 | if ( ((this.fac ilityId == null) && (other.fac ilityId != null)) | |||||
| 84 | || ((thi s.facility Id != null ) && !this .facilityI d | |||||
| 85 | .e quals(othe r.facility Id))) { | |||||
| 86 | return false; | |||||
| 87 | } | |||||
| 88 | retu rn true; | |||||
| 89 | } | |||||
| 90 | ||||||
| 91 | pu blic Boole an getAllo wed() { | |||||
| 92 | retu rn this.al lowed; | |||||
| 93 | } | |||||
| 94 | ||||||
| 95 | pu blic Strin g getFacil ityDns() { | |||||
| 96 | retu rn this.fa cilityDns; | |||||
| 97 | } | |||||
| 98 | ||||||
| 99 | pu blic Long getFacilit yId() { | |||||
| 100 | retu rn this.fa cilityId; | |||||
| 101 | } | |||||
| 102 | ||||||
| 103 | pu blic Strin g getFacil ityName() { | |||||
| 104 | retu rn this.fa cilityName ; | |||||
| 105 | } | |||||
| 106 | ||||||
| 107 | pu blic Strin g getFacil ityStation () { | |||||
| 108 | retu rn this.fa cilityStat ion; | |||||
| 109 | } | |||||
| 110 | ||||||
| 111 | pu blic Long getVisnId( ) { | |||||
| 112 | retu rn this.vi snId; | |||||
| 113 | } | |||||
| 114 | ||||||
| 115 | @O verride | |||||
| 116 | pu blic int h ashCode() { | |||||
| 117 | int hash = 0; | |||||
| 118 | hash += (this. facilityId != null ? this.faci lityId.has hCode() : 0); | |||||
| 119 | retu rn hash; | |||||
| 120 | } | |||||
| 121 | ||||||
| 122 | pu blic void setAllowed (final Boo lean allow ed) { | |||||
| 123 | this .allowed = allowed; | |||||
| 124 | } | |||||
| 125 | ||||||
| 126 | pu blic void setFacilit yDns(final String fa cilityDns) { | |||||
| 127 | this .facilityD ns = facil ityDns; | |||||
| 128 | } | |||||
| 129 | ||||||
| 130 | pu blic void setFacilit yId(final Long facil ityId) { | |||||
| 131 | this .facilityI d = facili tyId; | |||||
| 132 | } | |||||
| 133 | ||||||
| 134 | pu blic void setFacilit yName(fina l String f acilityNam e) { | |||||
| 135 | this .facilityN ame = faci lityName; | |||||
| 136 | } | |||||
| 137 | ||||||
| 138 | pu blic void setFacilit yStation(f inal Strin g facility Station) { | |||||
| 139 | this .facilityS tation = f acilitySta tion; | |||||
| 140 | } | |||||
| 141 | ||||||
| 142 | pu blic void setVisnId( final Long visnId) { | |||||
| 143 | this .visnId = visnId; | |||||
| 144 | } | |||||
| 145 | ||||||
| 146 | public String ge tPhone() { | |||||
| 147 | re turn phone ; | |||||
| 148 | } | |||||
| 149 | ||||||
| 150 | public void setP hone(Strin g phone) { | |||||
| 151 | th is.phone = phone; | |||||
| 152 | } | |||||
| 153 | ||||||
| 154 | public String ge tAddress() { | |||||
| 155 | re turn addre ss; | |||||
| 156 | } | |||||
| 157 | ||||||
| 158 | public void setA ddress(Str ing addres s) { | |||||
| 159 | th is.address = address ; | |||||
| 160 | } | |||||
| 161 | ||||||
| 162 | public String ge tCity() { | |||||
| 163 | re turn city; | |||||
| 164 | } | |||||
| 165 | ||||||
| 166 | public void setC ity(String city) { | |||||
| 167 | th is.city = city; | |||||
| 168 | } | |||||
| 169 | ||||||
| 170 | public String ge tState() { | |||||
| 171 | re turn state ; | |||||
| 172 | } | |||||
| 173 | ||||||
| 174 | public void setS tate(Strin g state) { | |||||
| 175 | th is.state = state; | |||||
| 176 | } | |||||
| 177 | ||||||
| 178 | public String ge tPostalCod e() { | |||||
| 179 | re turn posta lCode; | |||||
| 180 | } | |||||
| 181 | ||||||
| 182 | public void setP ostalCode( String pos talCode) { | |||||
| 183 | th is.postalC ode = post alCode; | |||||
| 184 | } | |||||
| 185 | ||||||
| 186 | @O verride | |||||
| 187 | pu blic Strin g toString () { | |||||
| 188 | retu rn "gov.va .nvap.web. facility[f acilityId= " | |||||
| 189 | + this.f acilityId + "]"; | |||||
| 190 | } | |||||
| 191 | ||||||
| 192 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.