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

BaseAttribute should be annotated as MappedSuperclass

    Details

    • Complexity:
      Low

      Description

      Hi,

      Post 2.x platform is made compatible with Hibernate 4. Hence, entities can now be annotated to avoid xml mappings. I can see that properties in BaseOpenmrsMetadata and BaseOpenmrsData have been annotated. However, I don’t see any annotations for BaseAttribute and BaseCustomizableData; neither are these two annotated as @MappedSuperclass.

      I suggest making BaseAttribute as MappedSuperclass and annotate its properties.

      Related discussion on [Openmrs Talk|https://talk.openmrs.org/t/handling-jpa-annotations-for-baseattribute/17873.]

       

        Attachments

          Activity

            People

            • Assignee:
              owais.hussain Owais Hussain [X] (Inactive)
              Reporter:
              owais.hussain Owais Hussain [X] (Inactive)
              Designated Committer:
              Owais Hussain [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                7h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                1h