spring-data-jpa-course icon indicating copy to clipboard operation
spring-data-jpa-course copied to clipboard

@Deprecated Dialect

Open florisgravendeel opened this issue 4 years ago • 0 comments

Hi, I'm following your course and I noticed that I got a lot of 'relation does not exist' errors.

This is because of the application.properties file. You entered the wrong dialect.

It currently is: spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect which has been deprecated.

while it should be: spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL95Dialect(if you use the latest version).

See all dialects here, for more.

Steps to reproduce this error:

  1. Clone this project
  2. Switch to a branch which has relations in it (section-5 for example).
  3. Make sure you got the latest PostgreSQL (version 14 in my case)
  4. Run

florisgravendeel avatar Dec 23 '21 12:12 florisgravendeel