Ken created Improvement XSTR-699
Issue Type: Improvement Improvement
Affects Versions: 1.4.2
Assignee: Joerg Schaible
Attachments: Hibernate4Mapper.java, Hibernate4PersistentCollectionConverter.java, Hibernate4PersistentMapConverter.java, Hibernate4PersistentSortedMapConverter.java, Hibernate4PersistentSortedSetConverter.java
Components: Compatibility
Created: 25/May/12 7:27 AM
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()));
Project: XStream
Priority: Major Major
Reporter: Ken
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to