Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relation not found error with play and postgres (while table does exists)

I have a table called ETL_TABLES which resides on the public schema. In my application.conf I have the following line:

hibernate.default_schema=public

that should mean the search_path of postgres is set to the public schema.

I have a class Tables, with the @Table(name="ETL_TABLES") annotation. But when I try to access the entity class, for example by Tables.findAll(); then the error says relation "public.etl_tables" does not exist.

The table is present on the postgres public schema, so what am I doing wrong here ?

like image 986
waalp Avatar asked Jul 14 '26 13:07

waalp


1 Answers

make sure you have set postgresql dialect:

jpa.dialect=org.hibernate.dialect.PostgreSQLDialect
like image 178
sdespolit Avatar answered Jul 16 '26 08:07

sdespolit