**[Veli-Pekka Muli](https://jira.spring.io/secure/ViewProfile.jspa?name=vpmuli)** opened **[DATAJDBC-491](https://jira.spring.io/browse/DATAJDBC-491?redirect=false)** and commented This is the exception I get: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT "EXAMPLE.USER"."ID" AS "ID", ... ... Caused by: org.postgresql.util.PSQLException: ERROR: relation "EXAMPLE.USER" does not exist I have configured the schema like this: ```java @Configuration public class DatabaseConfiguration { @Bean public NamingStrategy namingStrategy() { return new NamingStrategy() { @Override public String getSchema() { return "example"; } }; } } ``` --- **Affects:** 2.0 M3 (Neumann) **Referenced from:** pull request https://github.com/spring-projects/spring-data-jdbc/pull/194