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\consent\audit | AuditedConsentEx.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 | 273 |
| 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 | package go v.va.nvap. web.consen t.audit; | |||||
| 2 | ||||||
| 3 | import jav a.io.Seria lizable; | |||||
| 4 | import jav a.util.Dat e; | |||||
| 5 | import jav ax.persist ence.Colum n; | |||||
| 6 | import jav ax.persist ence.Entit y; | |||||
| 7 | import jav ax.persist ence.Id; | |||||
| 8 | import jav ax.persist ence.Lob; | |||||
| 9 | import jav ax.persist ence.Table ; | |||||
| 10 | import jav ax.persist ence.Tempo ral; | |||||
| 11 | import jav ax.persist ence.Tempo ralType; | |||||
| 12 | ||||||
| 13 | /** | |||||
| 14 | * | |||||
| 15 | * @author Johann So nnenberg | |||||
| 16 | */ | |||||
| 17 | @Entity | |||||
| 18 | @Table(nam e = "CONSE NT_AUDIT_E X") | |||||
| 19 | public cla ss Audited ConsentEx implements Serializa ble { | |||||
| 20 | ||||||
| 21 | privat e static f inal long serialVers ionUID = 1 L; | |||||
| 22 | ||||||
| 23 | @Id | |||||
| 24 | @Colum n(name = " CONSENT_AU DIT_ID") | |||||
| 25 | privat e Long con sentAuditI d; | |||||
| 26 | ||||||
| 27 | @Colum n(name = " ACTION_TYP E") | |||||
| 28 | privat e String a ctionType; | |||||
| 29 | ||||||
| 30 | @Colum n(name = " CONSENT_TY PE") | |||||
| 31 | privat e String c onsentType ; | |||||
| 32 | ||||||
| 33 | @Tempo ral(Tempor alType.TIM ESTAMP) | |||||
| 34 | @Colum n(name = " CREATED_DA TE") | |||||
| 35 | privat e Date cre atedDate; | |||||
| 36 | ||||||
| 37 | @Colum n(name = " FACILITY") | |||||
| 38 | privat e String f acility; | |||||
| 39 | ||||||
| 40 | @Colum n(name = " FACILITY_N AME") | |||||
| 41 | privat e String f acilityNam e; | |||||
| 42 | ||||||
| 43 | @Colum n (name = "IS_TEST_P ATIENT") | |||||
| 44 | privat e int isTe stPatient; | |||||
| 45 | ||||||
| 46 | @Colum n(name = " OPTOUT_REA SON") | |||||
| 47 | privat e String o ptoutReaso n; | |||||
| 48 | ||||||
| 49 | @Colum n(name = " PARENT_FAC ILITY_NAME ") | |||||
| 50 | privat e String p arentFacil ityName; | |||||
| 51 | ||||||
| 52 | @Colum n(name = " PARENT_STA TION_NUMBE R") | |||||
| 53 | privat e String p arentStati onNumber; | |||||
| 54 | ||||||
| 55 | @Colum n(name = " PATIENT_GI VEN_NAME") | |||||
| 56 | privat e String p atientGive nName; | |||||
| 57 | ||||||
| 58 | @Colum n(name = " PATIENT_ID ") | |||||
| 59 | privat e String p atientId; | |||||
| 60 | ||||||
| 61 | @Colum n(name = " PATIENT_LA ST_NAME") | |||||
| 62 | privat e String p atientLast Name; | |||||
| 63 | ||||||
| 64 | @Colum n(name = " PATIENT_SS N") | |||||
| 65 | privat e String p atientSsn; | |||||
| 66 | ||||||
| 67 | @Colum n(name = " POU_VALUE" ) | |||||
| 68 | privat e String p ouValue; | |||||
| 69 | ||||||
| 70 | @Tempo ral(Tempor alType.TIM ESTAMP) | |||||
| 71 | @Colum n(name = " TIME_OF_EV ENT") | |||||
| 72 | privat e Date tim eOfEvent; | |||||
| 73 | ||||||
| 74 | @Colum n(name = " USER_ID") | |||||
| 75 | privat e String u serId; | |||||
| 76 | ||||||
| 77 | @Colum n(name = " PATIENT_MI DDLE_NAME" ) | |||||
| 78 | privat e String p atientMidd leName; | |||||
| 79 | ||||||
| 80 | @Colum n(name = " VISN_NAME" ) | |||||
| 81 | privat e String v isnName; | |||||
| 82 | ||||||
| 83 | @Colum n(name = " VISN_NUMBE R") | |||||
| 84 | privat e Long vis nNumber; | |||||
| 85 | ||||||
| 86 | //gett ers and se tters | |||||
| 87 | ||||||
| 88 | public Long getC onsentAudi tId() { | |||||
| 89 | re turn conse ntAuditId; | |||||
| 90 | } | |||||
| 91 | ||||||
| 92 | public void setC onsentAudi tId(Long c onsentAudi tId) { | |||||
| 93 | th is.consent AuditId = consentAud itId; | |||||
| 94 | } | |||||
| 95 | ||||||
| 96 | public String ge tActionTyp e() { | |||||
| 97 | re turn actio nType; | |||||
| 98 | } | |||||
| 99 | ||||||
| 100 | public void setA ctionType( String act ionType) { | |||||
| 101 | th is.actionT ype = acti onType; | |||||
| 102 | } | |||||
| 103 | ||||||
| 104 | public String ge tConsentTy pe() { | |||||
| 105 | re turn conse ntType; | |||||
| 106 | } | |||||
| 107 | ||||||
| 108 | public void setC onsentType (String co nsentType) { | |||||
| 109 | th is.consent Type = con sentType; | |||||
| 110 | } | |||||
| 111 | ||||||
| 112 | public Date getC reatedDate () { | |||||
| 113 | re turn creat edDate; | |||||
| 114 | } | |||||
| 115 | ||||||
| 116 | public void setC reatedDate (Date crea tedDate) { | |||||
| 117 | th is.created Date = cre atedDate; | |||||
| 118 | } | |||||
| 119 | ||||||
| 120 | public String ge tFacility( ) { | |||||
| 121 | re turn facil ity; | |||||
| 122 | } | |||||
| 123 | ||||||
| 124 | public void setF acility(St ring facil ity) { | |||||
| 125 | th is.facilit y = facili ty; | |||||
| 126 | } | |||||
| 127 | ||||||
| 128 | public String ge tFacilityN ame() { | |||||
| 129 | re turn facil ityName; | |||||
| 130 | } | |||||
| 131 | ||||||
| 132 | public void setF acilityNam e(String f acilityNam e) { | |||||
| 133 | th is.facilit yName = fa cilityName ; | |||||
| 134 | } | |||||
| 135 | ||||||
| 136 | public int getIs TestPatien t() { | |||||
| 137 | re turn isTes tPatient; | |||||
| 138 | } | |||||
| 139 | ||||||
| 140 | public void setI sTestPatie nt(int isT estPatient ) { | |||||
| 141 | th is.isTestP atient = i sTestPatie nt; | |||||
| 142 | } | |||||
| 143 | ||||||
| 144 | public String ge tOptoutRea son() { | |||||
| 145 | re turn optou tReason; | |||||
| 146 | } | |||||
| 147 | ||||||
| 148 | public void setO ptoutReaso n(String o ptoutReaso n) { | |||||
| 149 | th is.optoutR eason = op toutReason ; | |||||
| 150 | } | |||||
| 151 | ||||||
| 152 | public String ge tParentFac ilityName( ) { | |||||
| 153 | re turn paren tFacilityN ame; | |||||
| 154 | } | |||||
| 155 | ||||||
| 156 | public void setP arentFacil ityName(St ring paren tFacilityN ame) { | |||||
| 157 | th is.parentF acilityNam e = parent FacilityNa me; | |||||
| 158 | } | |||||
| 159 | ||||||
| 160 | public String ge tParentSta tionNumber () { | |||||
| 161 | re turn paren tStationNu mber; | |||||
| 162 | } | |||||
| 163 | ||||||
| 164 | public void setP arentStati onNumber(S tring pare ntStationN umber) { | |||||
| 165 | th is.parentS tationNumb er = paren tStationNu mber; | |||||
| 166 | } | |||||
| 167 | ||||||
| 168 | public String ge tPatientGi venName() { | |||||
| 169 | re turn patie ntGivenNam e; | |||||
| 170 | } | |||||
| 171 | ||||||
| 172 | public void setP atientGive nName(Stri ng patient GivenName) { | |||||
| 173 | th is.patient GivenName = patientG ivenName; | |||||
| 174 | } | |||||
| 175 | ||||||
| 176 | public String ge tPatientId () { | |||||
| 177 | re turn patie ntId; | |||||
| 178 | } | |||||
| 179 | ||||||
| 180 | public void setP atientId(S tring pati entId) { | |||||
| 181 | th is.patient Id = patie ntId; | |||||
| 182 | } | |||||
| 183 | ||||||
| 184 | public String ge tPatientLa stName() { | |||||
| 185 | re turn patie ntLastName ; | |||||
| 186 | } | |||||
| 187 | ||||||
| 188 | public void setP atientLast Name(Strin g patientL astName) { | |||||
| 189 | th is.patient LastName = patientLa stName; | |||||
| 190 | } | |||||
| 191 | ||||||
| 192 | public String ge tPatientSs n() { | |||||
| 193 | re turn patie ntSsn; | |||||
| 194 | } | |||||
| 195 | ||||||
| 196 | public void setP atientSsn( String pat ientSsn) { | |||||
| 197 | th is.patient Ssn = pati entSsn; | |||||
| 198 | } | |||||
| 199 | ||||||
| 200 | public String ge tPouValue( ) { | |||||
| 201 | re turn pouVa lue; | |||||
| 202 | } | |||||
| 203 | ||||||
| 204 | public void setP ouValue(St ring pouVa lue) { | |||||
| 205 | th is.pouValu e = pouVal ue; | |||||
| 206 | } | |||||
| 207 | ||||||
| 208 | public Date getT imeOfEvent () { | |||||
| 209 | re turn timeO fEvent; | |||||
| 210 | } | |||||
| 211 | ||||||
| 212 | public void setT imeOfEvent (Date time OfEvent) { | |||||
| 213 | th is.timeOfE vent = tim eOfEvent; | |||||
| 214 | } | |||||
| 215 | ||||||
| 216 | public String ge tUserId() { | |||||
| 217 | re turn userI d; | |||||
| 218 | } | |||||
| 219 | ||||||
| 220 | public void setU serId(Stri ng userId) { | |||||
| 221 | th is.userId = userId; | |||||
| 222 | } | |||||
| 223 | ||||||
| 224 | public String ge tPatientMi ddleName() { | |||||
| 225 | re turn patie ntMiddleNa me; | |||||
| 226 | } | |||||
| 227 | ||||||
| 228 | public void setP atientMidd leName(Str ing patien tMiddleNam e) { | |||||
| 229 | th is.patient MiddleName = patient MiddleName ; | |||||
| 230 | } | |||||
| 231 | ||||||
| 232 | public String ge tVisnName( ) { | |||||
| 233 | re turn visnN ame; | |||||
| 234 | } | |||||
| 235 | ||||||
| 236 | public void setV isnName(St ring visnN ame) { | |||||
| 237 | th is.visnNam e = visnNa me; | |||||
| 238 | } | |||||
| 239 | ||||||
| 240 | public Long getV isnNumber( ) { | |||||
| 241 | re turn visnN umber; | |||||
| 242 | } | |||||
| 243 | ||||||
| 244 | public void setV isnNumber( Long visnN umber) { | |||||
| 245 | th is.visnNum ber = visn Number; | |||||
| 246 | } | |||||
| 247 | ||||||
| 248 | @Overr ide | |||||
| 249 | public int hashC ode() { | |||||
| 250 | in t hash = 0 ; | |||||
| 251 | ha sh += (con sentAuditI d != null ? consentA uditId.has hCode() : 0); | |||||
| 252 | re turn hash; | |||||
| 253 | } | |||||
| 254 | ||||||
| 255 | @Overr ide | |||||
| 256 | public boolean e quals(Obje ct object) { | |||||
| 257 | // TODO: War ning - thi s method w on't work in the cas e the id f ields are not set | |||||
| 258 | if (!(object instanceo f AuditedC onsentEx)) { | |||||
| 259 | return f alse; | |||||
| 260 | } | |||||
| 261 | Au ditedConse ntEx other = (Audite dConsentEx ) object; | |||||
| 262 | if ((this.co nsentAudit Id == null && other. consentAud itId != nu ll) || (th is.consent AuditId != null && ! this.conse ntAuditId. equals(oth er.consent AuditId))) { | |||||
| 263 | return f alse; | |||||
| 264 | } | |||||
| 265 | re turn true; | |||||
| 266 | } | |||||
| 267 | ||||||
| 268 | @Overr ide | |||||
| 269 | public String to String() { | |||||
| 270 | re turn "gov. va.nvap.we b.consent. audit.Audi tedConsent XE[ consen tAuditId=" + consent AuditId + " ]"; | |||||
| 271 | } | |||||
| 272 | ||||||
| 273 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.