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

Xml hibernate entities mappings should be replaced with annotations

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Ready for Work
    • Priority: Non-Essential
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Complexity:
      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              spereverziev Stanislav Pereverziev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

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