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 | DelayedConsent.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 | 253 |
| 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. svc.consen tmgmt.stub .data; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.vali dation.Nul lChecker; | |||||
| 4 | import jav a.io.Seria lizable; | |||||
| 5 | import jav a.util.Col lection; | |||||
| 6 | import jav a.util.Dat e; | |||||
| 7 | import jav ax.persist ence.Basic ; | |||||
| 8 | import jav ax.persist ence.Colum n; | |||||
| 9 | import jav ax.persist ence.Entit y; | |||||
| 10 | import jav ax.persist ence.Gener atedValue; | |||||
| 11 | import jav ax.persist ence.Gener ationType; | |||||
| 12 | import jav ax.persist ence.Id; | |||||
| 13 | import jav ax.persist ence.JoinC olumn; | |||||
| 14 | import jav ax.persist ence.JoinT able; | |||||
| 15 | import jav ax.persist ence.ManyT oMany; | |||||
| 16 | import jav ax.persist ence.ManyT oOne; | |||||
| 17 | import jav ax.persist ence.Named Queries; | |||||
| 18 | import jav ax.persist ence.Named Query; | |||||
| 19 | import jav ax.persist ence.OneTo Many; | |||||
| 20 | import jav ax.persist ence.Table ; | |||||
| 21 | import jav ax.persist ence.Tempo ral; | |||||
| 22 | import jav ax.persist ence.Tempo ralType; | |||||
| 23 | import org .hibernate .annotatio ns.LazyCol lection; | |||||
| 24 | import org .hibernate .annotatio ns.LazyCol lectionOpt ion; | |||||
| 25 | ||||||
| 26 | /** | |||||
| 27 | * | |||||
| 28 | * @since 04/06/2016 | |||||
| 29 | * @author Johann So nnenberg | |||||
| 30 | */ | |||||
| 31 | @Entity | |||||
| 32 | @Table(nam e = "DELAY ED_CONSENT ") | |||||
| 33 | @NamedQuer ies({ | |||||
| 34 | @Named Query(name = "Delaye dConsent.f indAll", q uery = "SE LECT d FRO M DelayedC onsent d") , | |||||
| 35 | @Named Query(name = "Delaye dConsent.f indByDelay edConsentI d", query = "SELECT d FROM Del ayedConsen t d WHERE d.delayedC onsentId = :delayedC onsentId") , | |||||
| 36 | @Named Query(name = "Delaye dConsent.f indByPatie ntIen", qu ery = "SEL ECT d FROM DelayedCo nsent d WH ERE d.pati entIen = : patientIen "), | |||||
| 37 | @Named Query(name = "Delaye dConsent.f indByPatie ntSsn", qu ery = "SEL ECT d FROM DelayedCo nsent d WH ERE d.pati entSsn = : patientSsn "), | |||||
| 38 | @Named Query(name = "Delaye dConsent.f indByPatie ntLastName ", query = "SELECT d FROM Dela yedConsent d WHERE d .patientLa stName = : patientLas tName"), | |||||
| 39 | @Named Query(name = "Delaye dConsent.f indByPatie ntFirstNam e", query = "SELECT d FROM Del ayedConsen t d WHERE d.patientF irstName = :patientF irstName") , | |||||
| 40 | @Named Query(name = "Delaye dConsent.f indByPatie ntMiddleNa me", query = "SELECT d FROM De layedConse nt d WHERE d.patient MiddleName = :patien tMiddleNam e"), | |||||
| 41 | @Named Query(name = "Delaye dConsent.f indByDateA dded", que ry = "SELE CT d FROM DelayedCon sent d WHE RE d.dateA dded = :da teAdded"), | |||||
| 42 | @Named Query(name = "Delaye dConsent.f indByUserI d", query = "SELECT d FROM Del ayedConsen t d WHERE d.userId = :userId") , | |||||
| 43 | @Named Query(name = "Delaye dConsent.f indByConse ntTypeAndS tatus", qu ery="SELEC T d FROM D elayedCons ent d WHER E d.patien tIen = :pa tientIen A ND d.statu s = :statu s AND d.co nsentTypeI d.name = : consentTyp e")}) | |||||
| 44 | public cla ss Delayed Consent im plements S erializabl e { | |||||
| 45 | ||||||
| 46 | privat e static f inal long serialVers ionUID = 1 L; | |||||
| 47 | ||||||
| 48 | @Id | |||||
| 49 | @Basic (optional = false) | |||||
| 50 | @Gener atedValue( strategy = Generatio nType.AUTO ) | |||||
| 51 | @Colum n(name = " DELAYED_CO NSENT_ID") | |||||
| 52 | privat e Long del ayedConsen tId; | |||||
| 53 | @Basic (optional = false) | |||||
| 54 | @Colum n(name = " PATIENT_IE N") | |||||
| 55 | privat e String p atientIen; | |||||
| 56 | @Colum n(name = " PATIENT_SS N") | |||||
| 57 | privat e String p atientSsn; | |||||
| 58 | @Basic (optional = false) | |||||
| 59 | @Colum n(name = " PATIENT_LA ST_NAME") | |||||
| 60 | privat e String p atientLast Name; | |||||
| 61 | @Basic (optional = false) | |||||
| 62 | @Colum n(name = " PATIENT_FI RST_NAME") | |||||
| 63 | privat e String p atientFirs tName; | |||||
| 64 | @Colum n(name = " PATIENT_MI DDLE_NAME" ) | |||||
| 65 | privat e String p atientMidd leName; | |||||
| 66 | @Basic (optional = false) | |||||
| 67 | @Colum n(name = " DATE_ADDED ") | |||||
| 68 | @Tempo ral(Tempor alType.TIM ESTAMP) | |||||
| 69 | privat e Date dat eAdded; | |||||
| 70 | @Basic (optional = false) | |||||
| 71 | @Colum n(name = " USER_ID") | |||||
| 72 | privat e String u serId; | |||||
| 73 | @JoinC olumn(name = "CONSEN T_TYPE_ID" , referenc edColumnNa me = "CONS ENT_TYPE_I D") | |||||
| 74 | @ManyT oOne(optio nal = fals e) | |||||
| 75 | privat e ConsentT ype consen tTypeId; | |||||
| 76 | @Colum n(name = " STATION_NU MBER") | |||||
| 77 | privat e String s tationNumb er; | |||||
| 78 | @Colum n (name = "STATUS") | |||||
| 79 | privat e String s tatus; | |||||
| 80 | @Colum n (name = "RESOLUTIO N_DATE") | |||||
| 81 | @Tempo ral(Tempor alType.TIM ESTAMP) | |||||
| 82 | privat e Date res olutionDat e; | |||||
| 83 | ||||||
| 84 | @JoinT able(name = "DELAYED _CONSENT_R EASON", jo inColumns = { | |||||
| 85 | @J oinColumn( name = "DE LAYED_CONS ENT_ID", r eferencedC olumnName = "DELAYED _CONSENT_I D")}, inve rseJoinCol umns = { | |||||
| 86 | @J oinColumn( name = "DE LAY_REASON _ID", refe rencedColu mnName = " DELAY_REAS ON_ID")}) | |||||
| 87 | @ManyT oMany() | |||||
| 88 | @LazyC ollection( LazyCollec tionOption .FALSE) | |||||
| 89 | privat e Collecti on<DelayRe ason> dela yReasonCol lection; | |||||
| 90 | ||||||
| 91 | @OneTo Many(mappe dBy = "del ayedConsen tId") | |||||
| 92 | @LazyC ollection( LazyCollec tionOption .FALSE) | |||||
| 93 | privat e Collecti on<MailNot ification> mailNotif icationCol lection; | |||||
| 94 | ||||||
| 95 | public DelayedCo nsent() { | |||||
| 96 | } | |||||
| 97 | ||||||
| 98 | public DelayedCo nsent(Long delayedCo nsentId) { | |||||
| 99 | th is.delayed ConsentId = delayedC onsentId; | |||||
| 100 | } | |||||
| 101 | ||||||
| 102 | public DelayedCo nsent(Long delayedCo nsentId, S tring pati entIen, St ring patie ntLastName , String p atientFirs tName, Dat e dateAdde d, String userId) { | |||||
| 103 | th is.delayed ConsentId = delayedC onsentId; | |||||
| 104 | th is.patient Ien = pati entIen; | |||||
| 105 | th is.patient LastName = patientLa stName; | |||||
| 106 | th is.patient FirstName = patientF irstName; | |||||
| 107 | th is.dateAdd ed = dateA dded; | |||||
| 108 | th is.userId = userId; | |||||
| 109 | } | |||||
| 110 | ||||||
| 111 | public Long getD elayedCons entId() { | |||||
| 112 | re turn delay edConsentI d; | |||||
| 113 | } | |||||
| 114 | ||||||
| 115 | public void setD elayedCons entId(Long delayedCo nsentId) { | |||||
| 116 | th is.delayed ConsentId = delayedC onsentId; | |||||
| 117 | } | |||||
| 118 | ||||||
| 119 | public String ge tPatientIe n() { | |||||
| 120 | re turn patie ntIen; | |||||
| 121 | } | |||||
| 122 | ||||||
| 123 | public void setP atientIen( String pat ientIen) { | |||||
| 124 | th is.patient Ien = pati entIen; | |||||
| 125 | } | |||||
| 126 | ||||||
| 127 | public String ge tPatientSs n() { | |||||
| 128 | re turn patie ntSsn; | |||||
| 129 | } | |||||
| 130 | ||||||
| 131 | public void setP atientSsn( String pat ientSsn) { | |||||
| 132 | th is.patient Ssn = pati entSsn; | |||||
| 133 | } | |||||
| 134 | ||||||
| 135 | public String ge tPatientLa stName() { | |||||
| 136 | re turn patie ntLastName ; | |||||
| 137 | } | |||||
| 138 | ||||||
| 139 | public void setP atientLast Name(Strin g patientL astName) { | |||||
| 140 | th is.patient LastName = patientLa stName; | |||||
| 141 | } | |||||
| 142 | ||||||
| 143 | public String ge tPatientFi rstName() { | |||||
| 144 | re turn patie ntFirstNam e; | |||||
| 145 | } | |||||
| 146 | ||||||
| 147 | public void setP atientFirs tName(Stri ng patient FirstName) { | |||||
| 148 | th is.patient FirstName = patientF irstName; | |||||
| 149 | } | |||||
| 150 | ||||||
| 151 | public String ge tPatientMi ddleName() { | |||||
| 152 | re turn patie ntMiddleNa me; | |||||
| 153 | } | |||||
| 154 | ||||||
| 155 | public void setP atientMidd leName(Str ing patien tMiddleNam e) { | |||||
| 156 | th is.patient MiddleName = patient MiddleName ; | |||||
| 157 | } | |||||
| 158 | ||||||
| 159 | public Date getD ateAdded() { | |||||
| 160 | re turn dateA dded; | |||||
| 161 | } | |||||
| 162 | ||||||
| 163 | public void setD ateAdded(D ate dateAd ded) { | |||||
| 164 | th is.dateAdd ed = dateA dded; | |||||
| 165 | } | |||||
| 166 | ||||||
| 167 | public String ge tUserId() { | |||||
| 168 | re turn userI d; | |||||
| 169 | } | |||||
| 170 | ||||||
| 171 | public void setU serId(Stri ng userId) { | |||||
| 172 | th is.userId = userId; | |||||
| 173 | } | |||||
| 174 | ||||||
| 175 | public ConsentTy pe getCons entTypeId( ) { | |||||
| 176 | re turn conse ntTypeId; | |||||
| 177 | } | |||||
| 178 | ||||||
| 179 | public void setC onsentType Id(Consent Type conse ntTypeId) { | |||||
| 180 | th is.consent TypeId = c onsentType Id; | |||||
| 181 | } | |||||
| 182 | ||||||
| 183 | public String ge tStationNu mber() { | |||||
| 184 | re turn stati onNumber; | |||||
| 185 | } | |||||
| 186 | ||||||
| 187 | public void setS tationNumb er(String stationNum ber) { | |||||
| 188 | th is.station Number = s tationNumb er; | |||||
| 189 | } | |||||
| 190 | ||||||
| 191 | public String ge tStatus() { | |||||
| 192 | re turn statu s; | |||||
| 193 | } | |||||
| 194 | ||||||
| 195 | public void setS tatus(Stri ng status) { | |||||
| 196 | th is.status = status; | |||||
| 197 | } | |||||
| 198 | ||||||
| 199 | public Date getR esolutionD ate() { | |||||
| 200 | re turn resol utionDate; | |||||
| 201 | } | |||||
| 202 | ||||||
| 203 | public void setR esolutionD ate(Date r esolutionD ate) { | |||||
| 204 | th is.resolut ionDate = resolution Date; | |||||
| 205 | } | |||||
| 206 | ||||||
| 207 | public Collectio n<DelayRea son> getDe layReasonC ollection( ) { | |||||
| 208 | if (NullCheck er.isNullO rEmpty(del ayReasonCo llection)) | |||||
| 209 | { | |||||
| 210 | return n ull; | |||||
| 211 | } else { | |||||
| 212 | return d elayReason Collection ; | |||||
| 213 | } | |||||
| 214 | } | |||||
| 215 | ||||||
| 216 | public void setD elayReason Collection (Collectio n<DelayRea son> delay ReasonColl ection) { | |||||
| 217 | th is.delayRe asonCollec tion = del ayReasonCo llection; | |||||
| 218 | } | |||||
| 219 | ||||||
| 220 | public Collectio n<MailNoti fication> getMailNot ificationC ollection( ) { | |||||
| 221 | re turn mailN otificatio nCollectio n; | |||||
| 222 | } | |||||
| 223 | ||||||
| 224 | public void setM ailNotific ationColle ction(Coll ection<Mai lNotificat ion> mailN otificatio nCollectio n) { | |||||
| 225 | th is.mailNot ificationC ollection = mailNoti ficationCo llection; | |||||
| 226 | } | |||||
| 227 | ||||||
| 228 | @Overr ide | |||||
| 229 | public int hashC ode() { | |||||
| 230 | in t hash = 0 ; | |||||
| 231 | ha sh += (del ayedConsen tId != nul l ? delaye dConsentId .hashCode( ) : 0); | |||||
| 232 | re turn hash; | |||||
| 233 | } | |||||
| 234 | ||||||
| 235 | @Overr ide | |||||
| 236 | public boolean e quals(Obje ct object) { | |||||
| 237 | // TODO: War ning - thi s method w on't work in the cas e the id f ields are not set | |||||
| 238 | if (!(object instanceo f DelayedC onsent)) { | |||||
| 239 | return f alse; | |||||
| 240 | } | |||||
| 241 | De layedConse nt other = (DelayedC onsent) ob ject; | |||||
| 242 | if ((this.de layedConse ntId == nu ll && othe r.delayedC onsentId ! = null) || (this.del ayedConsen tId != nul l && !this .delayedCo nsentId.eq uals(other .delayedCo nsentId))) { | |||||
| 243 | return f alse; | |||||
| 244 | } | |||||
| 245 | re turn true; | |||||
| 246 | } | |||||
| 247 | ||||||
| 248 | @Overr ide | |||||
| 249 | public String to String() { | |||||
| 250 | re turn "gov. va.nvap.sv c.consentm gmt.stub.d ata.Delaye dConsent[ delayedCon sentId=" + delayedCo nsentId + " ]"; | |||||
| 251 | } | |||||
| 252 | ||||||
| 253 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.