with hibernate 3 i was able to export xml data using a session with EntityMode.DOM4J:
Code:
Session session = sessionFactory.getCurrentSession();
org.hibernate.Session dom4jSession = session.getSession(EntityMode.DOM4J);
...
today i tried hibernate 4. The package org.hibernate.classic is empty and there's no DOM4J in EntityMode anymore. i also tried setting the property "hibernate.default_entity_mode" to "dom4j", but this refers to the same error as above (Caused by: java.lang.IllegalArgumentException: No enum const class org.hibernate.EntityMode.DOM4J).
seems that also someone else has this problem:
https://hibernate.onjira.com/browse/HHH-6879Is it still possible to use dom4j xml serialization with hibernate 4? or am i missing something else?
thank you