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 | OptoutReason.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 | 99 |
| 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. svc.consen tmgmt.stub .data; | |||||
| 7 | ||||||
| 8 | import jav a.io.Seria lizable; | |||||
| 9 | ||||||
| 10 | import jav ax.persist ence.Basic ; | |||||
| 11 | import jav ax.persist ence.Colum n; | |||||
| 12 | import jav ax.persist ence.Entit y; | |||||
| 13 | import jav ax.persist ence.Gener atedValue; | |||||
| 14 | import jav ax.persist ence.Gener ationType; | |||||
| 15 | import jav ax.persist ence.Id; | |||||
| 16 | import jav ax.persist ence.Named Queries; | |||||
| 17 | import jav ax.persist ence.Named Query; | |||||
| 18 | import jav ax.persist ence.Table ; | |||||
| 19 | ||||||
| 20 | /** | |||||
| 21 | * | |||||
| 22 | * @author vhaislegb erb | |||||
| 23 | */ | |||||
| 24 | @Entity | |||||
| 25 | @Table(nam e = "OPTOU T_REASON") | |||||
| 26 | @NamedQuer ies({ | |||||
| 27 | @Nam edQuery(na me = "Opto utReason.f indAll", q uery = "SE LECT o FRO M OptoutRe ason o"), | |||||
| 28 | @Nam edQuery(na me = "Opto utReason.f indByOptou tReasonId" , query = "SELECT o FROM Optou tReason o WHERE o.op toutReason Id = :opto utReasonId "), | |||||
| 29 | @Nam edQuery(na me = "Opto utReason.f indByText" , query = "SELECT o FROM Optou tReason o WHERE o.te xt = :text ") }) | |||||
| 30 | public cla ss OptoutR eason impl ements Ser ializable { | |||||
| 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 = "OPTOUT _REASON_ID ") | |||||
| 36 | pr ivate Long optoutRea sonId; | |||||
| 37 | @B asic(optio nal = fals e) | |||||
| 38 | @C olumn(name = "TEXT") | |||||
| 39 | pr ivate Stri ng text; | |||||
| 40 | ||||||
| 41 | pu blic Optou tReason() { | |||||
| 42 | } | |||||
| 43 | ||||||
| 44 | pu blic Optou tReason(fi nal Long o ptoutReaso nId) { | |||||
| 45 | this .optoutRea sonId = op toutReason Id; | |||||
| 46 | } | |||||
| 47 | ||||||
| 48 | pu blic Optou tReason(fi nal Long o ptoutReaso nId, final String te xt) { | |||||
| 49 | this .optoutRea sonId = op toutReason Id; | |||||
| 50 | this .text = te xt; | |||||
| 51 | } | |||||
| 52 | ||||||
| 53 | @O verride | |||||
| 54 | pu blic boole an equals( final Obje ct object) { | |||||
| 55 | // T ODO: Warni ng - this method won 't work in the case the id fie lds are | |||||
| 56 | // n ot set | |||||
| 57 | if ( !(object i nstanceof OptoutReas on)) { | |||||
| 58 | return false; | |||||
| 59 | } | |||||
| 60 | fina l OptoutRe ason other = (Optout Reason) ob ject; | |||||
| 61 | if ( ((this.opt outReasonI d == null) && (other .optoutRea sonId != n ull)) | |||||
| 62 | || ((thi s.optoutRe asonId != null) && ! this.optou tReasonId | |||||
| 63 | .e quals(othe r.optoutRe asonId))) { | |||||
| 64 | return false; | |||||
| 65 | } | |||||
| 66 | retu rn true; | |||||
| 67 | } | |||||
| 68 | ||||||
| 69 | pu blic Long getOptoutR easonId() { | |||||
| 70 | retu rn this.op toutReason Id; | |||||
| 71 | } | |||||
| 72 | ||||||
| 73 | pu blic Strin g getText( ) { | |||||
| 74 | retu rn this.te xt; | |||||
| 75 | } | |||||
| 76 | ||||||
| 77 | @O verride | |||||
| 78 | pu blic int h ashCode() { | |||||
| 79 | int hash = 0; | |||||
| 80 | hash += (this. optoutReas onId != nu ll ? this. optoutReas onId.hashC ode() | |||||
| 81 | : 0); | |||||
| 82 | retu rn hash; | |||||
| 83 | } | |||||
| 84 | ||||||
| 85 | pu blic void setOptoutR easonId(fi nal Long o ptoutReaso nId) { | |||||
| 86 | this .optoutRea sonId = op toutReason Id; | |||||
| 87 | } | |||||
| 88 | ||||||
| 89 | pu blic void setText(fi nal String text) { | |||||
| 90 | this .text = te xt; | |||||
| 91 | } | |||||
| 92 | ||||||
| 93 | @O verride | |||||
| 94 | pu blic Strin g toString () { | |||||
| 95 | retu rn "gov.va .nvap.svc. consentmgm t.entities .OptoutRea son[optout ReasonId=" | |||||
| 96 | + this.o ptoutReaso nId + "]"; | |||||
| 97 | } | |||||
| 98 | ||||||
| 99 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.