Skip to navigation Skip to main content

Utilities

  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
Red Hat Customer Portal
  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
  • Products & Services

    Products

    Support

    • Production Support
    • Development Support
    • Product Life Cycles

    Services

    • Consulting
    • Technical Account Management
    • Training & Certifications

    Documentation

    • Red Hat Enterprise Linux
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenStack Platform
    • Red Hat OpenShift Container Platform
    All Documentation

    Ecosystem Catalog

    • Red Hat Partner Ecosystem
    • Partner Resources
  • Tools

    Tools

    • Troubleshoot a product issue
    • Packages
    • Errata

    Customer Portal Labs

    • Configuration
    • Deployment
    • Security
    • Troubleshoot
    All labs

    Red Hat Insights

    Increase visibility into IT operations to detect and resolve technical issues before they impact your business.

    Learn More
    Go to Insights
  • Security

    Red Hat Product Security Center

    Engage with our Red Hat Product Security team, access security updates, and ensure your environments are not exposed to any known security vulnerabilities.

    Product Security Center

    Security Updates

    • Security Advisories
    • Red Hat CVE Database
    • Security Labs

    Keep your systems secure with Red Hat's specialized responses to security vulnerabilities.

    View Responses

    Resources

    • Security Blog
    • Security Measurement
    • Severity Ratings
    • Backporting Policies
    • Product Signing (GPG) Keys
  • Community

    Customer Portal Community

    • Discussions
    • Private Groups
    Community Activity

    Customer Events

    • Red Hat Convergence
    • Red Hat Summit

    Stories

    • Red Hat Subscription Value
    • You Asked. We Acted.
    • Open Source Communities
Or troubleshoot an issue.

Select Your Language

  • English
  • 한국어
  • 日本語
  • 中文 (中国)

Infrastructure and Management

  • Red Hat Enterprise Linux
  • Red Hat Satellite
  • Red Hat Subscription Management
  • Red Hat Insights
  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift
  • Red Hat OpenStack Platform
  • Red Hat OpenShift Container Platform
  • Red Hat OpenShift Data Science
  • Red Hat OpenShift Dedicated
  • Red Hat Advanced Cluster Security for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes
  • Red Hat Quay
  • OpenShift Dev Spaces
  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage
  • Red Hat Hyperconverged Infrastructure
  • Red Hat Ceph Storage
  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes
  • Red Hat JBoss Enterprise Application Platform
  • Red Hat Data Grid
  • Red Hat JBoss Web Server
  • Red Hat Single Sign On
  • Red Hat support for Spring Boot
  • Red Hat build of Node.js
  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Application Foundations
  • Red Hat Fuse
  • Red Hat AMQ
  • Red Hat 3scale API Management
All Products

Table of contents

  1. Migration Guide
  2. 1. Introduction
    1. 1.1. About Red Hat JBoss Enterprise Application Platform 6
    2. 1.2. About the Migration Guide
  3. 2. Prepare for Migration
    1. 2.1. Prepare for Migration
    2. 2.2. Review What's New and Different in JBoss EAP 6
    3. 2.3. Review The List of Deprecated and Unsupported Features
  4. 3. Migrate Your Application
    1. 3.1. Changes Required by Most Applications
      1. 3.1.1. Review Changes Required by Most Applications
      2. 3.1.2. Class Loading Changes
      3. 3.1.3. Configuration File Changes
      4. 3.1.4. Logging Changes
      5. 3.1.5. Application Packaging Changes
      6. 3.1.6. Datasource and Resource Adapter Configuration Changes
      7. 3.1.7. Security Changes
      8. 3.1.8. JNDI Changes
    2. 3.2. Changes Dependent on Your Application Architecture and Components
      1. 3.2.1. Review Changes Dependent on Your Application Architecture and Components
      2. 3.2.2. Hibernate and JPA Changes
      3. 3.2.3. JSF changes
      4. 3.2.4. Web Services Changes
      5. 3.2.5. JAX-RS and RESTEasy Changes
      6. 3.2.6. LDAP Security Realm Changes
      7. 3.2.7. HornetQ Changes
      8. 3.2.8. Clustering Changes
      9. 3.2.9. Service-style Deployment Changes
      10. 3.2.10. Remote Invocation Changes
      11. 3.2.11. EJB 2.x Changes
      12. 3.2.12. JBoss AOP Changes
      13. 3.2.13. Migrate Seam 2.2 Applications
      14. 3.2.14. Migrate Spring Applications
      15. 3.2.15. Other Changes That Affect Migration
  5. 4. Tools and Tips
    1. 4.1. Resources to Assist With Migration
      1. 4.1.1. Resources to Assist in Your Migration
      2. 4.1.2. Become Familiar with Tools That Can Assist with the Migration
      3. 4.1.3. Use Tattletale to Find Application Dependencies
      4. 4.1.4. Download and Install Tattletale
      5. 4.1.5. Create and Review the Tattletale Report
      6. 4.1.6. Use the IronJacamar Tool to Migrate Datasource and Resource Adapter Configurations
      7. 4.1.7. Download and Install the IronJacamar Migration Tool
      8. 4.1.8. Use the IronJacamar Migration Tool to Convert a Datasource Configuration File
      9. 4.1.9. Use the IronJacamar Migration Tool to Convert a Resource Adapter Configuration File
    2. 4.2. Debug Migration Issues
      1. 4.2.1. Debug and Resolve Migration Issues
      2. 4.2.2. Debug and Resolve ClassNotFoundExceptions and NoClassDefFoundErrors
      3. 4.2.3. Find the JBoss Module Dependency
      4. 4.2.4. Find the JAR in the Previous Install
      5. 4.2.5. Debug and Resolve ClassCastExceptions
      6. 4.2.6. Debug and Resolve DuplicateServiceExceptions
      7. 4.2.7. Debug and Resolve JBoss Seam Debug Page Errors
    3. 4.3. Review Migration of Example Applications
      1. 4.3.1. Review Migration of Example Applications
      2. 4.3.2. Migrate the Seam 2.2 JPA Example to JBoss EAP 6
      3. 4.3.3. Migrate the Seam 2.2 Booking Example to JBoss EAP 6
      4. 4.3.4. Migrate the Seam 2.2 Booking Archive to JBoss EAP 6: Step-By-Step Instructions
      5. 4.3.5. Build and Deploy the JBoss EAP 5.X Version of the Seam 2.2 Booking Application
      6. 4.3.6. Debug and Resolve Seam 2.2 Booking Archive Deployment Errors and Exceptions
      7. 4.3.7. Debug and Resolve Seam 2.2 Booking Archive Runtime Errors and Exceptions
      8. 4.3.8. Review a Summary of the Changes Made When Migrating the Seam 2.2 Booking Application
  6. A. Revision History
  7. Legal Notice

3.2.2. Hibernate and JPA Changes

3.2.2.1. Update Applications That Use Hibernate and/or JPA

Summary

If your application uses Hibernate or JPA, read through the following sections and make any changes necessary to migrate to JBoss EAP 6.

  • Section 3.2.2.2, “Configure Changes for Applications That Use Hibernate and JPA”
  • Section 3.2.2.4, “Update Your Hibernate 3 Application to Use Hibernate 4”
  • Section 3.2.2.9, “Update Your Application to Conform to the JPA 2.0 Specification”
  • Section 3.2.2.10, “Replace JPA/Hibernate Second Level Cache with Infinispan”
  • Section 3.2.2.12, “Migrate to Hibernate Validator 4”
Report a bug
  1. Previous
  2. Next
Red Hat

Quick Links

  • Downloads
  • Subscriptions
  • Support Cases
  • Customer Service
  • Product Documentation

Help

  • Contact Us
  • Customer Portal FAQ
  • Log-in Assistance

Site Info

  • Trust Red Hat
  • Browser Support Policy
  • Accessibility
  • Awards and Recognition
  • Colophon

Related Sites

  • redhat.com
  • developers.redhat.com
  • connect.redhat.com
  • cloud.redhat.com

About

  • Red Hat Subscription Value
  • About Red Hat
  • Red Hat Jobs
Copyright © 2023 Red Hat, Inc.
  • Privacy Statement
  • Terms of Use
  • All Policies and Guidelines
Red Hat Summit Red Hat Summit
Twitter