Exception while trying to deploy EAP application referencing entities or named finder from another module
Issue
While deploying the application which contains entities with annotations pointing to entities or calling named finder located in another module, it fails with
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on <FQCN.fieldName> references an unknown entity... or similar exception.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
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.
