Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5153

HibernateProviderDAO throws exception when given non existing ids

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • Core 2.2.0
    • None
    • None

    Description

      HibernateProviderDAO uses hibernates load() method which throws an exception if you ask for a row that doesnt exist in:

      • getProvider()
      • getProviderAttribute()
      • getProviderAttributeType()

      we use the get() in the other DAO implementations which returns null if row not found.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                mayank8318 Mayank Vaidya
                teleivo Ivo Ulrich
                Ivo Ulrich Ivo Ulrich
                Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 30 minutes
                    30m