Task #2693 (closed)
Opened 9 years ago
Closed 9 years ago
Refactor all uses of createSQLQuery
| Reported by: | jamoore | Owned by: | jamoore |
|---|---|---|---|
| Priority: | minor | Milestone: | OMERO-Beta4.3 |
| Component: | General | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2010-12-09 (1) |
Description
Similarly to #2692, any use of org.hibernate.Session.createSQLQuery needs to be removed, and future uses of that method should be prevented programmatically.
Change History (5)
comment:1 Changed 9 years ago by jmoore
comment:2 Changed 9 years ago by jmoore
Referencing ticket #2684 has changed sprint.
comment:3 Changed 9 years ago by jmoore
- Milestone changed from Unscheduled to OMERO-Beta4.3
comment:4 Changed 9 years ago by jmoore
- Sprint set to 2010-12-09 (21)
comment:5 Changed 9 years ago by jmoore
- Remaining Time changed from 0.5 to 0
- Resolution set to fixed
- Status changed from new to closed
ome.tools.hibernate.SessionFactory now returns session which are wrapped with AOP which prevent the use of createSQLQuery. All uses of that method have been pushed down into SqlAction (#2692). Any further attempts to use that method will fail.
(code commit waiting on release of 4.2.2)
Referencing ticket #2684 has changed sprint.