"Unknown entity" during find or persist in Hibernate

Solution Verified - Updated -

Issue

  • When calling find or persist method, encountering exceptions like the below

    ... org.hibernate.MappingException: Unknown entity: <ENTITY_NAME_HERE>
    
    ... java.lang.IllegalArgumentException: Unknown entity: <ENTITY_NAME_HERE>
    

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5
    • 6
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In