Accessing DOM4J session in Hibernate 4 and later

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content