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

Add support for Platform Modules and more generally Extensions to provide new Hibernate mappings

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      I'd like to cover 2 use cases at once:

      • Ability for a platform module to contribute Hibernate mappings (static)
      • Ability for an extension installed at runtime to contribute Hibernate mappings (dynamic)

      The solution is to:

      • Step 1: Create a new Hibernate Configuration instance with all the mappings (old + new)
      • Step 2: Create a new SessionFactory by calling myconf.buildSessionFactory()
      • Step 3: Modify all code so that no code caches the SessionFactory and instead always call an XWiki component to retrieve the Session Factory

      I'd like to reorganize a bit the work stared by Artem with the HibernateSessionFactory role.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: