TPS-704 [5.4.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)
(cherry picked from commit e6398ed27a0c6d455d7ee67495afae1012875cd9)

Conflicts:
	org.talend.mdm.core/src/com/amalto/core/storage/hibernate/HibernateStorage.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)