Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4364 Upgrade to Hibernate 4
  3. TRUNK-4676

Session.connection() has been removed

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Platform 2.0.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium

      Description

      In Hibernate 4 there is no Session.connection(), so we need to provide a new way to get native SQL connection to the database.

      org.openmrs.util.DatabaseUtil.executeSQL(Connection, String, boolean) is one of methods that uses connection and callers of that method need to be fixed.

      Please use session.doWork() instead. See http://stackoverflow.com/a/3526626

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                spereverziev Stanislav Pereverziev
                Reporter:
                harsha89 Harsha Kumara
                Designated Committer:
                Rafal Korytkowski Rafal Korytkowski
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 3 hours
                    3h