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

BaseOpenmrsObject uuid should be not updatable

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • TBD
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Low

    Description

      The property/column

      • uuid
      • dateCreated

      of BaseOpenmrsObject object should be made updatable=false

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

      With updatable=true the persistence provider will not add this 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

              Unassigned Unassigned
              teleivo Ivo Ulrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: