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

Saving an existing concept with numeric datatype

    XMLWordPrintable

    Details

      Description

      I can create a new concept with a numeric datatype; however after the initial save, it will not save again. This is true on all systems (including the openmrs demo server).

      This is from catalina.out:

      ERROR - StandardWrapperValve.invoke(253) |2008-04-03 08:48:38,696| Servlet.service() for servlet openmrs threw exception
      org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.openmrs.ConceptNumericTRAC-3000]
      at org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:590)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:284)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:223)
      at org.hibernate.event.def.DefaultUpdateEventListener.performSaveOrUpdate(DefaultUpdateEventListener.java:33)
      at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)

        Attachments

          Activity

            People

            Assignee:
            bwolfe Ben Wolfe
            Reporter:
            ball Ellen Ball
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: