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.]

       

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  owais.hussain Owais Hussain
                  Reporter:
                  owais.hussain Owais Hussain
                  Designated Committer:
                  Owais Hussain
                • 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