← Back to team overview

dhis2-devs team mailing list archive

[Bug 776975] [NEW] A new oganisation unit not showed after created

 

Public bug reported:

When a organization unit created then back to the main page of orgunit list but that new one isn't showed up in the list. Checking in database the record of this unit has been stored.
I think this issue which is concerned at cache is being used in hibernate mapping file of organization unit. In fact, I tried removing this <cache usage="read-write" /> in 

    <set name="children" inverse="true" cascade="save-update,delete-orphan">
      <cache usage="read-write" />
      <key column="parentid" />
      <one-to-many class="xxx.OrganisationUnit" />
    </set>

then rebuilding and running/working properly.

** Affects: dhis2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/776975

Title:
  A new oganisation unit not showed after created

Status in DHIS 2 - District Health Information Software:
  New

Bug description:
  When a organization unit created then back to the main page of orgunit list but that new one isn't showed up in the list. Checking in database the record of this unit has been stored.
  I think this issue which is concerned at cache is being used in hibernate mapping file of organization unit. In fact, I tried removing this <cache usage="read-write" /> in 

      <set name="children" inverse="true" cascade="save-update,delete-orphan">
        <cache usage="read-write" />
        <key column="parentid" />
        <one-to-many class="xxx.OrganisationUnit" />
      </set>

  then rebuilding and running/working properly.


Follow ups

References