Switching order of properties composing a JPA @EmbeddedId leads to 'EntityNotFoundException'
Issue
-
Switching the order of properties composing a JPA @EmbeddedId leads to 'EntityNotFoundException'
javax.persistence.EntityNotFoundException: Unable to find model.TestC with id 8a26d29a-c5f9-4711-a918-dfbe02e32c3f | 8201 at org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:109) at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:171)
Environment
- Enterprise Application Platform (EAP)
- 4.2.0 prior to CP09
- 4.3.0 prior to CP08
- 5.0
- Entity with an @EmbeddedId and association to this Entity
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
