Nov 1, 2018

How to fix: JPA "Unknown abstract schema type" Error

First make sure you use the correct entity name in your JPA query ( It is case sensitive).

If you run JPA in standalone mode, or not in a Java EE container (such as Tomcat ), you forget to explicitly list all entity classes in the persistence.xml file, thus causing JPA to fail to locate the entities when compiling the query.