TPS-705 [5.5.1]Query uses operators incompatible with 'text' data type (SQL
Server)(TMDM-7599)

TMDM-7599: "Query uses operators incompatible with 'text' data type (SQL Server)"

Default max varchar size before switching to large clob is 4000 (SQL Server only).
(https://jira.talendforge.org/browse/TMDM-7599)
(cherry picked from commit a09c3a343878c586dd26e37374d4e8067d5de42c)

Conflicts:
	org.talend.mdm.core/src/com/amalto/core/storage/hibernate/TypeMappingCreator.java

TMDM-7599: "Query uses operators incompatible with 'text' data type (SQL Server)"

Raise limit for nvarchar to 4000 in custom Hibernate dialect (aligned with database capabilities).
(https://jira.talendforge.org/browse/TMDM-7599)
(cherry picked from commit 6a35f6f)

TMDM-7599: "Query uses operators incompatible with 'text' data type (SQL Server)"

Overrides default Hibernate mapping of LONGVARCHAR to "text" (now nvarchar(max)).
Completes previous commit (previous commit only covered LONG - N  - VARCHAR).
(https://jira.talendforge.org/browse/TMDM-7599)
(cherry picked from commit 4483288)