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 | NotificationType.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 | 109 |
| 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 | ||||||
| 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 vhaispbow mag | |||||
| 22 | */ | |||||
| 23 | @Entity | |||||
| 24 | @Table(nam e = "NOTIF ICATION_TY PE") | |||||
| 25 | @NamedQuer ies({ | |||||
| 26 | @Nam edQuery(na me = "Noti ficationTy pe.findAll ", query = "SELECT n t FROM Not ificationT ype nt"), | |||||
| 27 | @Nam edQuery(na me = "Noti ficationTy pe.findByN otificatio nTypeId", query = "S ELECT nt F ROM Notifi cationType nt WHERE nt.notific ationTypeI d = :Notif icationTyp eId"), | |||||
| 28 | @Nam edQuery(na me = "Noti ficationTy pe.findByN ame", quer y = "SELEC T nt FROM Notificati onType nt WHERE nt.n ame = :nam e"), | |||||
| 29 | @Nam edQuery(na me = "Noti ficationTy pe.findByC ode", quer y = "SELEC T nt FROM Notificati onType nt WHERE nt.c ode = :cod e") }) | |||||
| 30 | public cla ss Notific ationType implements Serializa ble { | |||||
| 31 | pr ivate stat ic final l ong serial VersionUID = 1L; | |||||
| 32 | @I d | |||||
| 33 | @G eneratedVa lue(strate gy = Gener ationType. AUTO) | |||||
| 34 | @B asic(optio nal = fals e) | |||||
| 35 | @C olumn(name = "NOTIFI CATION_TYP E_ID") | |||||
| 36 | pr ivate Long notificat ionTypeId; | |||||
| 37 | @B asic(optio nal = fals e) | |||||
| 38 | @C olumn(name = "CODE") | |||||
| 39 | pr ivate Stri ng code; | |||||
| 40 | @B asic(optio nal = fals e) | |||||
| 41 | @C olumn(name = "NAME") | |||||
| 42 | pr ivate Stri ng name; | |||||
| 43 | ||||||
| 44 | pu blic Notif icationTyp e() { | |||||
| 45 | } | |||||
| 46 | ||||||
| 47 | pu blic Notif icationTyp e(final Lo ng Notific ationTypeI d) { | |||||
| 48 | this .notificat ionTypeId = Notifica tionTypeId ; | |||||
| 49 | } | |||||
| 50 | ||||||
| 51 | pu blic Notif icationTyp e(final Lo ng notific ationTypeI d, final S tring code , final St ring name) { | |||||
| 52 | this .notificat ionTypeId = notifica tionTypeId ; | |||||
| 53 | this .code = co de; | |||||
| 54 | this .name = na me; | |||||
| 55 | } | |||||
| 56 | ||||||
| 57 | pu blic Strin g getCode( ) { | |||||
| 58 | retu rn code; | |||||
| 59 | } | |||||
| 60 | ||||||
| 61 | pu blic void setCode(St ring code) { | |||||
| 62 | this .code = co de; | |||||
| 63 | } | |||||
| 64 | ||||||
| 65 | @O verride | |||||
| 66 | pu blic boole an equals( final Obje ct object) { | |||||
| 67 | // T ODO: Warni ng - this method won 't work in the case the id fie lds are | |||||
| 68 | // n ot set | |||||
| 69 | if ( !(object i nstanceof Notificati onType)) { | |||||
| 70 | return false; | |||||
| 71 | } | |||||
| 72 | fina l Notifica tionType o ther = (No tification Type) obje ct; | |||||
| 73 | if ( ((this.not ificationT ypeId == n ull) && (o ther.notif icationTyp eId != nul l)) | |||||
| 74 | || ((thi s.notifica tionTypeId != null) && !this.n otificatio nTypeId | |||||
| 75 | .e quals(othe r.notifica tionTypeId ))) { | |||||
| 76 | return false; | |||||
| 77 | } | |||||
| 78 | retu rn true; | |||||
| 79 | } | |||||
| 80 | ||||||
| 81 | pu blic Long getNotific ationTypeI d() { | |||||
| 82 | retu rn this.no tification TypeId; | |||||
| 83 | } | |||||
| 84 | ||||||
| 85 | pu blic Strin g getName( ) { | |||||
| 86 | retu rn this.na me; | |||||
| 87 | } | |||||
| 88 | ||||||
| 89 | @O verride | |||||
| 90 | pu blic int h ashCode() { | |||||
| 91 | int hash = 0; | |||||
| 92 | hash += (this. notificati onTypeId ! = null ? t his.notifi cationType Id.hashCod e() : 0); | |||||
| 93 | retu rn hash; | |||||
| 94 | } | |||||
| 95 | ||||||
| 96 | pu blic void setNotific ationTypeI d(final Lo ng notific ationTypeI d) { | |||||
| 97 | this .notificat ionTypeId = notifica tionTypeId ; | |||||
| 98 | } | |||||
| 99 | ||||||
| 100 | pu blic void setName(fi nal String name) { | |||||
| 101 | this .name = na me; | |||||
| 102 | } | |||||
| 103 | ||||||
| 104 | @O verride | |||||
| 105 | pu blic Strin g toString () { | |||||
| 106 | retu rn "gov.va .nvap.svc. consentmgm t.Notifica tionType[ notificati onTypeId=" | |||||
| 107 | + this.n otificatio nTypeId + " ]"; | |||||
| 108 | } | |||||
| 109 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.