Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19932

Injecting custom table in the hibernate mapping from an installed extension is too complex

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 13.10.7
    • Old Core
    • None
    • Unknown

    Description

      It is doable, and some contrib extension do it already, but it has serious limitations:

      • extension can force a reload of Hibernate, but it does not always work (and never in case of HSQLDB), so any install of the extension (or upgrade to a version impacting the mapping) usually require a restart
      • if you manipulate any Hibernate API which return instance of the class defined in the mapping (like queries directly returning entities), any upgrade/uninstall of any extension on the same namespace require a restart (because of the classloader reload)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: