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

Xml hibernate entities mappings should be replaced with annotations

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • Non-Essential
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Medium

    Description

      We've opened up a way to use Hibernate annotations instead of xml in TRUNK-3778 and TRUNK-4385.

      It's tedious and error prone task to replace xml with annotations. Fortunately, we can automatically check for errors since we have a test in place to validate if Hibernate mappings are correct (see https://github.com/openmrs/openmrs-core/blob/master/api/src/test/java/org/openmrs/util/databasechange/Database1_9_7UpgradeIT.java#L143). It can be run with

      mvn test -Pintegration-test -Pskip-default-test
      

      Separate sub-tasks should be created under this issue for each Hibernate entity in core to migrate to annotations.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                spereverziev Stanislav Pereverziev
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 4 days
                    4d