Accessing DOM4J session in Hibernate 4 and later
Issue
-
The code below is used with Hibernate 3 to obtain a DOM4J session using the legacy (non-JPA) Hibernate interface
Session dom4jSession = session.getSession(EntityMode.DOM4J);
-
The code will not compile using Hibernate 4 or later
Environment
- JBoss Enterprise Application Platform (EAP) 6 or later
- Hibernate 4 or later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.