We use the hibernate entitymanager to map our objects through JPA. And we use the database in the HSQLDB database for unit testing. Everything was fine until the last refactor to the model started to cause the following error:
17:55:48.516 [main] WARN o.h.util.JDBCExceptionReporter - SQL Error: -22, SQLState: S0002
17:55:48.517 [main] ERROR o.h.util.JDBCExceptionReporter - Table not found in statement
I cannot post an SQL query, but can someone give me guidance on the possible causes of the above error? especially since I know that the code worked before. Does hibernate seem to generate invalid sqls due to refactoring?
source
share