PostgreSQL should not use nvarchar when using Nationalization

Description

When running the org.hibernate.userguide.mapping.basic.NationalizedTest using PostgreSQL, we get the following exception:

Second, the PostgreSQL driver does not support Statement.setNVarChar either, and so we cannot use the NVarcharTypeDescriptor for PostgreSQL.

Accodring to this site and this SO question, The PostgreSQL VARCHAR plays the role of an NVARCHAR in other DBs,

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure