Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.3
    • Component/s: Compatibility
    • Labels:
      None

      Description

      Hibernate 4 moved the Persistent* classes to a different package, breaking XStream's Hibernate module. The fix is simply to change the package. However, this needs to be released as a separate module/artifact (e.g. xstream-hibernate4) to allow for use with both.

      Simple use example for the attached:

       
      final XStream xstream = new XStream() {
        protected MapperWrapper wrapMapper(final MapperWrapper next) {
          return new Hibernate4Mapper(next);
        }
      };
      
      xstream.registerConverter(new HibernateProxyConverter());
      xstream.registerConverter(new Hibernate4PersistentCollectionConverter(xstream.getMapper()));
      xstream.registerConverter(new Hibernate4PersistentMapConverter(xstream.getMapper()));
      xstream.registerConverter(new Hibernate4PersistentSortedMapConverter(xstream.getMapper()));
      xstream.registerConverter(new Hibernate4PersistentSortedSetConverter(xstream.getMapper()));
      

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Ken
        • Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: