use_nationalized_character_data is incompatible with @DiscriminatorColumn in SQL Server

Description

I am trying to implement a joined inheritance model like so:

With Spring Boot, I am setting (for development purposes):

and my Hibernate configuration is like so:

so that String fields in my JPA entities are persisted as NVARCHAR (instead of VARCHAR). However, then I am unable to load any record from the SQL table because the schema is generated with the discriminator column as a VARCHAR (instead of NVARCHAR) - here is the stack trace for trying to findOne from the JPA repository:

Environment

SQL Server
Spring Boot JPA

Assignee

Unassigned

Reporter

Duke Yin

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure