Uploaded image for project: 'LAMS Development'
  1. LAMS Development
  2. LDEV-2201 Upgrade to Hibernate 3.3
  3. LDEV-2202

Write a filter for XML files exported using old Hibernate version

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: Author
    • Labels:
      None

      Description

      While exporting Learning Designs, an XML file with serialized Activity classes is created. This includes Hibernate Collections. For example Q&A contains Questions, which are stored as Hibernate Collection elements.
      After upgrading to a new Hibernate version these XML files become unreadable as Collection classes are different. They can not be deserialized anymore. We need to write a filter that will convert the previously created XML files into readable versions for new Hibernate. This will most probably involve extracting important data from a XML file and feeding it to a new XML structure, which is compatible with the new Hibernate version.

      Another approach which involves usage of old Hibernate classes for importing is also considered.

        Activity

        Hide
        marcin Marcin Cieslak added a comment -
        Resolving this issue have not required any action.
        Problems with importing old Learnind Designs was observed on JBoss 4.0.2 and Hibernate 3.2.0.
        Now, on JBoss 5.1 and Hibernate 3.3.1 none of them occured.

        Xstream library was not updated, although newer version probably contains a fix for this issue:
        http://jira.codehaus.org/browse/XSTR-226

        So it seems that either Hibernate distribution or JBoss 5 contain fixes that allows proper deserialization.

        I any similar issues are found, this JIRA will be reopened.


        Show
        marcin Marcin Cieslak added a comment - Resolving this issue have not required any action. Problems with importing old Learnind Designs was observed on JBoss 4.0.2 and Hibernate 3.2.0. Now, on JBoss 5.1 and Hibernate 3.3.1 none of them occured. Xstream library was not updated, although newer version probably contains a fix for this issue: http://jira.codehaus.org/browse/XSTR-226 So it seems that either Hibernate distribution or JBoss 5 contain fixes that allows proper deserialization. I any similar issues are found, this JIRA will be reopened.
        Hide
        ernieg Ernie Ghiglione added a comment -
        Done!
        Show
        ernieg Ernie Ghiglione added a comment - Done!

          People

          • Assignee:
            marcin Marcin Cieslak
            Reporter:
            marcin Marcin Cieslak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development