Hibernate DAOs for Principals and Groups close the Hibernate Session when adding

XMLWordPrintable

      Both PrincipalDAOHibernate.add() (line 39) and GroupDAOHibernate.add() (line 39) call HibernateTemplate.clear() which closes the Hibernate Session.

      Extending InternalDirectory to do multiple CRUD transactions fails after doing an add() because the Session is closed. Is the clear() necessary? Shouldn't the flush() do all a clear() does without closing the Sesison?

      Our development requires us to comment out the clear() and recompile Crowd. It would be nice if add() could accommodate us (by leaving the Session open) and the import routines (which I'm told is why the clear() is there to begin with).

            Assignee:
            Justin Koke
            Reporter:
            Graham Bakay
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: