Produced by Araxis Merge on 3/8/2018 10:11:37 AM Eastern Standard 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 | PRE_PPS-N_v3.0.1.zip\PS_PPS_domain\src\main\java\gov\va\med\pharmacy\peps\domain\common\dao\impl | EplDdiSeverityDaoImpl.java | Fri Jan 12 15:42:46 2018 UTC |
2 | PRE_PPS-N_v3.0.1.zip\PS_PPS_domain\src\main\java\gov\va\med\pharmacy\peps\domain\common\dao\impl | EplDdiSeverityDaoImpl.java | Tue Mar 6 23:53:05 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 148 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
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.med.p harmacy.pe ps.domain. common.dao .impl; | |
2 | ||
3 | ||
4 | import gov .va.med.ph armacy.pep s.domain.c ommon.dao. EplDdiSeve rityDao; | |
5 | import gov .va.med.ph armacy.pep s.domain.c ommon.mode l.EplDdiSe verityDo; | |
6 | ||
7 | import jav a.util.Lis t; | |
8 | ||
9 | import org .hibernate .Query; | |
10 | import org .hibernate .Session; | |
11 | import org .hibernate .SessionFa ctory; | |
12 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
13 | import org .springfra mework.ste reotype.Re pository; | |
14 | ||
15 | ||
16 | ||
17 | /** | |
18 | * @author DNS | |
19 | * | |
20 | */ | |
21 | @Repositor y | |
22 | public cla ss EplDdiS everityDao Impl exten ds DataAcc essObjectI mpl<EplDdi SeverityDo , Long> im plements E plDdiSever ityDao { | |
23 | ||
24 | @Autow ired | |
25 | privat e SessionF actory ses sionFactor y; | |
26 | ||
27 | @Overr ide | |
28 | public EplDdiSev erityDo fi ndByName(S tring name ){ | |
29 | Qu ery query = getCurre ntSession( ).getNamed Query("fin dSeverityB yName"); | |
30 | qu ery.setStr ing("sever ity", name ); | |
31 | re turn (EplD diSeverity Do) query. uniqueResu lt(); | |
32 | ||
33 | } | |
34 | ||
35 | public SessionFa ctory getS essionFact ory() { | |
36 | re turn sessi onFactory; | |
37 | } | |
38 | ||
39 | /** | |
40 | * @pa ram sessio nFactory t he session Factory to set | |
41 | */ | |
42 | public void setS essionFact ory(Sessio nFactory s essionFact ory) { | |
43 | th is.session Factory = sessionFac tory; | |
44 | } | |
45 | ||
46 | ||
47 | ||
48 | @Overr ide | |
49 | public List<EplD diSeverity Do> retrie veAll() { | |
50 | ||
51 | re turn retri eveAscendi ng(EplDdiS everityDo. SEVERITY_N AME); | |
52 | } | |
53 | ||
54 | @Overr ide | |
55 | public EplDdiSev erityDo re trieve(Int eger Id) { | |
56 | ||
57 | if (Id == nul l){ | |
58 | throw ne w IllegalA rgumentExc eption("id cannot be null"); | |
59 | } | |
60 | ||
61 | Se ssion sess ion = getS essionFact ory().getC urrentSess ion(); | |
62 | ||
63 | Ep lDdiSeveri tyDo eplDd iSeverity = (EplDdiS everityDo) session.g et(EplDdiS everityDo. class, Id) ; | |
64 | ||
65 | re turn eplDd iSeverity; | |
66 | } | |
67 | ||
68 | ||
69 | ||
70 | ||
71 | ||
72 | ||
73 | } | |
74 | ||
75 |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.