SQLServer2008Dialect generate incorrect length of nvarchar

Description

When I specify column length 8000 and use @Nationalized, Hibernate should generate as nvarchar(max) instead of nvarchar(8000).

Maximum length of nvarchar in SQL Server 2008 onwards is 4000.

Please refer to this link
https://msdn.microsoft.com/en-sg/library/ms186939.aspx

Environment

Hibernate 5.0.7, SQL Server 2008

Fixed

Assignee

Andrea Boriero

Reporter

Agustino Alim

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure