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 | MailNotification.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 | 133 |
| 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 jav a.io.Seria lizable; | |||||
| 4 | import jav a.util.Dat e; | |||||
| 5 | import jav ax.persist ence.Basic ; | |||||
| 6 | import jav ax.persist ence.Colum n; | |||||
| 7 | import jav ax.persist ence.Entit y; | |||||
| 8 | import jav ax.persist ence.Gener atedValue; | |||||
| 9 | import jav ax.persist ence.Gener ationType; | |||||
| 10 | import jav ax.persist ence.Id; | |||||
| 11 | import jav ax.persist ence.JoinC olumn; | |||||
| 12 | import jav ax.persist ence.ManyT oOne; | |||||
| 13 | import jav ax.persist ence.Named Queries; | |||||
| 14 | import jav ax.persist ence.Named Query; | |||||
| 15 | import jav ax.persist ence.Table ; | |||||
| 16 | import jav ax.persist ence.Tempo ral; | |||||
| 17 | import jav ax.persist ence.Tempo ralType; | |||||
| 18 | ||||||
| 19 | /** | |||||
| 20 | * @since 04/06/2016 | |||||
| 21 | * @author Johann So nnenberg | |||||
| 22 | */ | |||||
| 23 | @Entity | |||||
| 24 | @Table(nam e = "MAIL_ NOTIFICATI ON") | |||||
| 25 | @NamedQuer ies({ | |||||
| 26 | @Named Query(name = "MailNo tification .findAll", query = " SELECT m F ROM MailNo tification m"), | |||||
| 27 | @Named Query(name = "MailNo tification .findByCon sentDirId" , query = "SELECT m FROM MailN otificatio n m WHERE m.consentD irId = :co nsentDirId "), | |||||
| 28 | @Named Query(name = "MailNo tification .findByDel ayedConsen tId", quer y = "SELEC T m FROM M ailNotific ation m WH ERE m.dela yedConsent Id = :dela yedConsent Id"), | |||||
| 29 | @Named Query(name = "MailNo tification .findByMai lNotificat ionId", qu ery = "SEL ECT m FROM MailNotif ication m WHERE m.ma ilNotifica tionId = : mailNotifi cationId") , | |||||
| 30 | @Named Query(name = "MailNo tification .findBySen tDate", qu ery = "SEL ECT m FROM MailNotif ication m WHERE m.se ntDate = : sentDate") , | |||||
| 31 | @Named Query(name = "MailNo tification .findByUse rId", quer y = "SELEC T m FROM M ailNotific ation m WH ERE m.user Id = :user Id")}) | |||||
| 32 | public cla ss MailNot ification implements Serializa ble { | |||||
| 33 | ||||||
| 34 | @JoinC olumn(name = "DELAYE D_CONSENT_ ID", refer encedColum nName = "D ELAYED_CON SENT_ID") | |||||
| 35 | @ManyT oOne | |||||
| 36 | privat e DelayedC onsent del ayedConsen tId; | |||||
| 37 | @JoinC olumn(name = "CONSEN T_DIR_ID", reference dColumnNam e = "CONSE NT_DIR_ID" ) | |||||
| 38 | @ManyT oOne | |||||
| 39 | privat e ConsentD irective c onsentDirI d; | |||||
| 40 | ||||||
| 41 | privat e static f inal long serialVers ionUID = 1 L; | |||||
| 42 | @Id | |||||
| 43 | @Gener atedValue( strategy = Generatio nType.AUTO ) | |||||
| 44 | @Basic (optional = false) | |||||
| 45 | @Colum n(name = " MAIL_NOTIF ICATION_ID ") | |||||
| 46 | privat e Long mai lNotificat ionId; | |||||
| 47 | @Basic (optional = false) | |||||
| 48 | @Colum n(name = " SENT_DATE" ) | |||||
| 49 | @Tempo ral(Tempor alType.DAT E) | |||||
| 50 | privat e Date sen tDate; | |||||
| 51 | @Basic (optional = false) | |||||
| 52 | @Colum n(name = " USER_ID") | |||||
| 53 | privat e String u serId; | |||||
| 54 | ||||||
| 55 | public MailNotif ication() { | |||||
| 56 | } | |||||
| 57 | ||||||
| 58 | public MailNotif ication(Lo ng mailNot ificationI d) { | |||||
| 59 | th is.mailNot ificationI d = mailNo tification Id; | |||||
| 60 | } | |||||
| 61 | ||||||
| 62 | public MailNotif ication(Lo ng mailNot ificationI d, Date se ntDate, St ring userI d) { | |||||
| 63 | th is.mailNot ificationI d = mailNo tification Id; | |||||
| 64 | th is.sentDat e = sentDa te; | |||||
| 65 | th is.userId = userId; | |||||
| 66 | } | |||||
| 67 | ||||||
| 68 | public Long getM ailNotific ationId() { | |||||
| 69 | re turn mailN otificatio nId; | |||||
| 70 | } | |||||
| 71 | ||||||
| 72 | public void setM ailNotific ationId(Lo ng mailNot ificationI d) { | |||||
| 73 | th is.mailNot ificationI d = mailNo tification Id; | |||||
| 74 | } | |||||
| 75 | ||||||
| 76 | public Date getS entDate() { | |||||
| 77 | re turn sentD ate; | |||||
| 78 | } | |||||
| 79 | ||||||
| 80 | public void setS entDate(Da te sentDat e) { | |||||
| 81 | th is.sentDat e = sentDa te; | |||||
| 82 | } | |||||
| 83 | ||||||
| 84 | public String ge tUserId() { | |||||
| 85 | re turn userI d; | |||||
| 86 | } | |||||
| 87 | ||||||
| 88 | public void setU serId(Stri ng userId) { | |||||
| 89 | th is.userId = userId; | |||||
| 90 | } | |||||
| 91 | ||||||
| 92 | @Overr ide | |||||
| 93 | public int hashC ode() { | |||||
| 94 | in t hash = 0 ; | |||||
| 95 | ha sh += (mai lNotificat ionId != n ull ? mail Notificati onId.hashC ode() : 0) ; | |||||
| 96 | re turn hash; | |||||
| 97 | } | |||||
| 98 | ||||||
| 99 | @Overr ide | |||||
| 100 | public boolean e quals(Obje ct object) { | |||||
| 101 | // TODO: War ning - thi s method w on't work in the cas e the id f ields are not set | |||||
| 102 | if (!(object instanceo f MailNoti fication)) { | |||||
| 103 | return f alse; | |||||
| 104 | } | |||||
| 105 | Ma ilNotifica tion other = (MailNo tification ) object; | |||||
| 106 | if ((this.ma ilNotifica tionId == null && ot her.mailNo tification Id != null ) || (this .mailNotif icationId != null && !this.mai lNotificat ionId.equa ls(other.m ailNotific ationId))) { | |||||
| 107 | return f alse; | |||||
| 108 | } | |||||
| 109 | re turn true; | |||||
| 110 | } | |||||
| 111 | ||||||
| 112 | @Overr ide | |||||
| 113 | public String to String() { | |||||
| 114 | re turn "gov. va.nvap.sv c.consentm gmt.stub.d ata.MailNo tification [ mailNoti ficationId =" + mailN otificatio nId + " ]" ; | |||||
| 115 | } | |||||
| 116 | ||||||
| 117 | public DelayedCo nsent getD elayedCons entId() { | |||||
| 118 | re turn delay edConsentI d; | |||||
| 119 | } | |||||
| 120 | ||||||
| 121 | public void setD elayedCons entId(Dela yedConsent delayedCo nsentId) { | |||||
| 122 | th is.delayed ConsentId = delayedC onsentId; | |||||
| 123 | } | |||||
| 124 | ||||||
| 125 | public ConsentDi rective ge tConsentDi rId() { | |||||
| 126 | re turn conse ntDirId; | |||||
| 127 | } | |||||
| 128 | ||||||
| 129 | public void setC onsentDirI d(ConsentD irective c onsentDirI d) { | |||||
| 130 | th is.consent DirId = co nsentDirId ; | |||||
| 131 | } | |||||
| 132 | ||||||
| 133 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.