You need to use org.hibernate.dialect.PostgreSQL82Dialect
instead.
This is documented in PostgreSQLDialect
Javadoc:
Deprecated.
use PostgreSQL82Dialect instead
Note however that you should use the dialect that best matches the PostgreSQL JDBC driver you are using (list here). For example, if you are using PostgreSQL 9.4 or later, use PostgreSQL94Dialect
instead.