JPA Persistence Error – Could Not Extract ResultSet or ERROR: relation does not exist

If you are getting error as described below, check following

    1. Schema is defined in your @Table Definition
    2. Check your relationship mapping in your JPA Model. Easy way to check is have a bare minimum mapping and run Find All to test your mapping

Types of error you my encounter are:

javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet

Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet

Caused by: org.postgresql.util.PSQLException: ERROR: relation "XXXXXXXXXXX" does not exist