Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
remove the SQL Server-specific mapping (DocumentAbstract-sqlserver.orm) for DocumentAbstract's clobChars #24
originally this issue was raised to change the mapping for SQL Server from text to ntext, with corresponding change in mapping of LONGVARCHAR to LONGNVARCHAR (to avoid character encoding issues).
However, as of DN 4.1.7 (in Apache Isis 1.14.0), LONGNVARCHAR does not seem to be supported, either for sql-type or jdbc-tye.
And in general I can't find any way to map correctly to either ntext or nvarchar(max).
For my own use case (Estatio) we are using isis-module-flyway to manage database schema, and so mapping the .orm just to specify the length (with no jdbc-type or sql-type) seems to work ok so long as the table has been created externally. It doesn't work however to auto-create the table.
Therefore, think there is no all purpose solution to this. Best option for now is to let the consuming application (if using SQL Server) provide their own .orm file.