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

Order.previousOrder is mapped incorrectly

    Details

      Description

      The way Order.previousOrder is mapped currently, it doesn't work for well for subclasses of Order, previousOrder is mapped as a property of Order in the hbm file with the class attribute set to org.openmrs.Order hibernate creates previousOrder as an instance of Order even for subclasses which is incorrect and will lead to ClassCastExceptions.

        Attachments

          Activity

            People

            • Assignee:
              wyclif Wyclif Luyima
              Reporter:
              wyclif Wyclif Luyima
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day, 4 hours
                1d 4h
                Remaining:
                Time Spent - 6 hours Remaining Estimate - 6 hours
                6h
                Logged:
                Time Spent - 6 hours Remaining Estimate - 6 hours
                6h