Produced by Araxis Merge on 12/20/2017 5:56:12 PM 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 | Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\dao\impl | RoleTypeDao.java | Thu Dec 14 19:57:16 2017 UTC |
| 2 | Genisis_2.0_v6_bld6.zip\Source Code\UI\Services\src\main\java\gov\va\genisis2\dao\impl | RoleTypeDao.java | Wed Dec 20 22:12:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 96 |
| 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.genis is2.dao.im pl; | |
| 2 | ||
| 3 | import org .hibernate .Session; | |
| 4 | import org .hibernate .SessionFa ctory; | |
| 5 | import org .slf4j.Log ger; | |
| 6 | import org .slf4j.Log gerFactory ; | |
| 7 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
| 8 | import org .springfra mework.cac he.annotat ion.Cachea ble; | |
| 9 | import org .springfra mework.ste reotype.Re pository; | |
| 10 | import org .springfra mework.tra nsaction.a nnotation. Transactio nal; | |
| 11 | ||
| 12 | import gov .va.genisi s2.dao.IRo leTypeDao; | |
| 13 | import gov .va.genisi s2.excepti ons.Genisi sDAOExcept ion; | |
| 14 | import gov .va.genisi s2.model.R oleType; | |
| 15 | ||
| 16 | /** | |
| 17 | * | |
| 18 | * The Rol eType data access ob ject (DAO) is an obj ect that p rovides an abstract | |
| 19 | * interfa ce to some type of d atabase or other per sistence m echanism. By mapping | |
| 20 | * applica tion calls to the pe rsistence layer, Rol eType DAO provide so me | |
| 21 | * specifi c data ope rations wi thout expo sing detai ls of the database. | |
| 22 | * | |
| 23 | * @author P II | |
| 24 | * | |
| 25 | */ | |
| 26 | @Repositor y | |
| 27 | @Transacti onal(value = "transa ctionManag er") | |
| 28 | public cla ss RoleTyp eDao exten ds Abstact HibernateD ao impleme nts IRoleT ypeDao { | |
| 29 | ||
| 30 | pr ivate stat ic final L ogger LOGG ER = Logge rFactory.g etLogger(R oleTypeDao .class); | |
| 31 | ||
| 32 | @A utowired | |
| 33 | pr ivate Sess ionFactory sessionFa ctory; | |
| 34 | ||
| 35 | @O verride | |
| 36 | @C acheable(v alue = "ge tRoleType" , key = "# id") | |
| 37 | pu blic RoleT ype getRol eType(int id) throws GenisisDA OException { | |
| 38 | Role Type roleT ype = null ; | |
| 39 | try { | |
| 40 | Sessio n session = sessionF actory.get CurrentSes sion(); | |
| 41 | roleTy pe = sessi on.get(Rol eType.clas s, id); | |
| 42 | } ca tch (Excep tion ex) { | |
| 43 | LOGGER .error("Ex ception oc curred whi le queryin g getRoleT ype.", ex) ; | |
| 44 | throw new Genisi sDAOExcept ion("Excep tion occur red while querying g etRoleType .", ex); | |
| 45 | } | |
| 46 | retu rn roleTyp e; | |
| 47 | } | |
| 48 | ||
| 49 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.