I have a table called Tenants in my DB. The DDL is as follows:
I try to return a java.util.List of all Tenant objects mapped to this table, but I get an exception:
java.sql.SQLException: ERROR: relation "public.tenants" does not exist. I'm guessing this is problem with configuration. Because the schema and table do exist and there is data in there. Below is the log output and exception stacktrace, and below that is more information about how my app is setup and things are mapped.
Log Output & Stacktrace
Here is how Hibernate is setup in the Spring applicationContext.xml file:
Below are the Tenant object and the hibernate mapping file for this table: