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

hibernate.injectCustomMappings injects mapping for the class of each object rather than the class of one object of each class.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.4 M1
    • 2.0 RC2
    • Storage
    • None
    • performance patch
    • Trivial

    Description

      XWikiHibernateStore.injectCustomMappings(XWikiDocument, XWikiContext)
      loops through every object attached to a document, gets the class of that object and calls injectCustomMapping on that class. Since xWikiObjects are grouped by class it is only necessary to get the first object of each class, get the class and call injectCustomMapping on that class.

      This will make a major improvement for documents with thousands of objects of the same class and it is very easy to change.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: