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

    • Sub-task
    • Status: Closed
    • TBD
    • Resolution: Fixed
    • None
    • Platform 2.0.0
    • None
    • None
    • 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

                spereverziev Stanislav Pereverziev
                harsha89 Harsha Kumara
                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