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

BaseOpenmrsData creator, dateCreated, uuid should be not updatable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.1.0
    • Component/s: None
    • Labels:

      Description

      The properties/columns

      • creator
      • dateCreated
      • uuid

      of BaseOpenmrsData object should be made updatable=false

      Since they should only be set on INSERT and shouldnt change after that.

      With updatable=true the persistence provider will not add these columns to an UPDATE statement.

      see jpa docs for the annotation property http://docs.oracle.com/javaee/6/api/javax/persistence/Column.html#updatable%28%29

      see discussion:
      https://issues.openmrs.org/browse/TRUNK-4696

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              micherman Michal Slawinski
              Reporter:
              teleivo Ivo Ulrich
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h