Details
-
Type:
Bug
-
Status: Verified (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 7.2.0.GA, 7.2.1.GA
-
Component/s: Hibernate
-
Labels:
-
Target Release:
-
Workaround:Workaround Exists
-
Workaround Description:
-
Git Pull Request:
-
QE Test Coverage:+
Description
The code below worked in Hibernate 5.1 and earlier releases
org.hibernate.ejb.HibernateEntityManager em = entityManager.unwrap(org.hibernate.ejb.HibernateEntityManager.class);
In Hibernate 5.3, the same code fails with:
java.lang.ClassCastException: org.hibernate.internal.SessionImpl cannot be cast to org.hibernate.ejb.HibernateEntityManager
at support.hibernate.entity.TestHibernate.test(TestHibernate.java:56)
Attachments
Issue Links
- is incorporated by
-
JBEAP-16418 (7.2.z) Upgrade Hibernate ORM from 5.3.8 to 5.3.9
-
- Closed
-
- incorporates
-
HHH-13281 Loading...
- links to