Commit 53609ce
authored
Move to JPA from hbm.xml, remove genericdao, update spring wiring (#136)
- Replaced the legacy Hibernate XML mappings with annotation-based JPA entities and moved date fields to Instant across the attendance domain model, adding the necessary relationship metadata and last-modified tracking.
- Refactored AttendanceDao and its implementation to drop GenericDAO, rely on the shared SessionFactory, and use the JPA Criteria API plus merge/Instant-aware queries and updates instead of named queries.
- Updated Spring wiring to enable @transactional on the service layer, inject the DAO directly, and introduce an AttendanceStatCalcService interface plus TransactionTemplate so the stats job can manage batch updates in explicit transactions.
- Adjusted stat-calculation and logic classes to operate on the new entity shape (including Instant sync times), and reworked the cron job to mark batches and calculate per site within dedicated transactions.
- Upgraded the Wicket stack to 9.21.0 and changed the tool UI to convert between Instant and Date, fix the breadcrumbs markup error, and ensure interactive links (e.g., in StudentView) bind safely without JavaScript fallbacks.
- Added lightweight unit tests covering model defaults/validation and the new stats helper to give coverage for the refactored code paths.1 parent a672e07 commit 53609ce
File tree
37 files changed
+1045
-855
lines changed- api/src
- java/org/sakaiproject/attendance
- hbm
- model
- test/java/org/sakaiproject/attendance/model
- impl
- src
- java/org/sakaiproject/attendance
- dao
- impl
- export
- logic
- services
- test/java/org/sakaiproject/attendance/logic
- webapp/WEB-INF
- tool/src/java/org/sakaiproject/attendance/tool
- pages
- panels
37 files changed
+1045
-855
lines changedLines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 0 additions & 52 deletions
This file was deleted.
0 commit comments