Details
-
New Feature
-
Status: Code Review (Initial)
-
Could
-
Resolution: Unresolved
-
Platform 1.12.0, Core 2.4.0
-
None
-
None
-
Medium
-
2016-11-29 Platform 2.1.0
Description
Add Spring Data JPA support. We should not remove any existing DAOs yet, but create alternative Spring Data DAOs.
As part of this issue create one DAO to set an example. If we agree we want to follow that path, we can create more issues and implement all other DAOs.
I'd suggest starting from https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/db/EncounterDAO.java
When implementing a new DAO you do not have to try to keep old method signatures. In fact some methods e.g. getEncounters would benefit if we changed the signature to accept one parameter object. See some discussion about good practices http://stackoverflow.com/questions/2432443/best-practice-for-passing-many-arguments-to-method
Gliffy Diagrams
Attachments
Issue Links
- is related to
-
TRUNK-4364 Upgrade to Hibernate 4
-
- Closed
-
- resolves
-
TRUNK-1824 Refactor common code out of Services and DAOs and into common utilities
-
- Closed
-
- mentioned in
-
Page Loading...