Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2693 (closed)

Opened 14 years ago

Closed 13 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 14 years ago by jmoore

Referencing ticket #2684 has changed sprint.

comment:2 Changed 14 years ago by jmoore

Referencing ticket #2684 has changed sprint.

comment:3 Changed 14 years ago by jmoore

  • Milestone changed from Unscheduled to OMERO-Beta4.3

comment:4 Changed 13 years ago by jmoore

  • Sprint set to 2010-12-09 (21)

comment:5 Changed 13 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)

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.72742 sec.)

We're Hiring!