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 | DelayReason.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 | 105 |
| 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.Col lection; | |||||
| 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.ManyT oMany; | |||||
| 12 | import jav ax.persist ence.Named Queries; | |||||
| 13 | import jav ax.persist ence.Named Query; | |||||
| 14 | import jav ax.persist ence.Table ; | |||||
| 15 | import org .hibernate .annotatio ns.LazyCol lection; | |||||
| 16 | import org .hibernate .annotatio ns.LazyCol lectionOpt ion; | |||||
| 17 | ||||||
| 18 | /** | |||||
| 19 | * | |||||
| 20 | * @since 04/06/2016 | |||||
| 21 | * @author Johann So nnenberg | |||||
| 22 | */ | |||||
| 23 | @Entity | |||||
| 24 | @Table(nam e = "DELAY _REASON") | |||||
| 25 | @NamedQuer ies({ | |||||
| 26 | @Named Query(name = "DelayR eason.find All", quer y = "SELEC T d FROM D elayReason d"), | |||||
| 27 | @Named Query(name = "DelayR eason.find ByDelayRea sonId", qu ery = "SEL ECT d FROM DelayReas on d WHERE d.delayRe asonId = : delayReaso nId"), | |||||
| 28 | @Named Query(name = "DelayR eason.find ByName", q uery = "SE LECT d FRO M DelayRea son d WHER E d.name = :name")}) | |||||
| 29 | public cla ss DelayRe ason imple ments Seri alizable { | |||||
| 30 | ||||||
| 31 | privat e static f inal long serialVers ionUID = 1 L; | |||||
| 32 | @Id | |||||
| 33 | @Basic (optional = false) | |||||
| 34 | @Gener atedValue( strategy = Generatio nType.AUTO ) | |||||
| 35 | @Colum n(name = " DELAY_REAS ON_ID") | |||||
| 36 | privat e Long del ayReasonId ; | |||||
| 37 | @Basic (optional = false) | |||||
| 38 | @Colum n(name = " NAME") | |||||
| 39 | privat e String n ame; | |||||
| 40 | @LazyC ollection( LazyCollec tionOption .FALSE) | |||||
| 41 | @ManyT oMany(mapp edBy = "de layReasonC ollection" ) | |||||
| 42 | privat e Collecti on<Delayed Consent> d elayedCons entCollect ion; | |||||
| 43 | ||||||
| 44 | public DelayReas on() { | |||||
| 45 | } | |||||
| 46 | ||||||
| 47 | public DelayReas on(Long de layReasonI d) { | |||||
| 48 | th is.delayRe asonId = d elayReason Id; | |||||
| 49 | } | |||||
| 50 | ||||||
| 51 | public DelayReas on(Long de layReasonI d, String name) { | |||||
| 52 | th is.delayRe asonId = d elayReason Id; | |||||
| 53 | th is.name = name; | |||||
| 54 | } | |||||
| 55 | ||||||
| 56 | public Long getD elayReason Id() { | |||||
| 57 | re turn delay ReasonId; | |||||
| 58 | } | |||||
| 59 | ||||||
| 60 | public void setD elayReason Id(Long de layReasonI d) { | |||||
| 61 | th is.delayRe asonId = d elayReason Id; | |||||
| 62 | } | |||||
| 63 | ||||||
| 64 | public String ge tName() { | |||||
| 65 | re turn name; | |||||
| 66 | } | |||||
| 67 | ||||||
| 68 | public void setN ame(String name) { | |||||
| 69 | th is.name = name; | |||||
| 70 | } | |||||
| 71 | ||||||
| 72 | public Collectio n<DelayedC onsent> ge tDelayedCo nsentColle ction() { | |||||
| 73 | re turn delay edConsentC ollection; | |||||
| 74 | } | |||||
| 75 | ||||||
| 76 | public void setD elayedCons entCollect ion(Collec tion<Delay edConsent> delayedCo nsentColle ction) { | |||||
| 77 | th is.delayed ConsentCol lection = delayedCon sentCollec tion; | |||||
| 78 | } | |||||
| 79 | ||||||
| 80 | @Overr ide | |||||
| 81 | public int hashC ode() { | |||||
| 82 | in t hash = 0 ; | |||||
| 83 | ha sh += (del ayReasonId != null ? delayReas onId.hashC ode() : 0) ; | |||||
| 84 | re turn hash; | |||||
| 85 | } | |||||
| 86 | ||||||
| 87 | @Overr ide | |||||
| 88 | public boolean e quals(Obje ct object) { | |||||
| 89 | // TODO: War ning - thi s method w on't work in the cas e the id f ields are not set | |||||
| 90 | if (!(object instanceo f DelayRea son)) { | |||||
| 91 | return f alse; | |||||
| 92 | } | |||||
| 93 | De layReason other = (D elayReason ) object; | |||||
| 94 | if ((this.de layReasonI d == null && other.d elayReason Id != null ) || (this .delayReas onId != nu ll && !thi s.delayRea sonId.equa ls(other.d elayReason Id))) { | |||||
| 95 | return f alse; | |||||
| 96 | } | |||||
| 97 | re turn true; | |||||
| 98 | } | |||||
| 99 | ||||||
| 100 | @Overr ide | |||||
| 101 | public String to String() { | |||||
| 102 | re turn "gov. va.nvap.sv c.consentm gmt.stub.d ata.DelayR eason[ del ayReasonId =" + delay ReasonId + " ]"; | |||||
| 103 | } | |||||
| 104 | ||||||
| 105 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.