|
Re: Convert varchar to nvarchar for specific columns only. [message #1058621 is a reply to message #1058376] |
Tue, 14 May 2013 14:53   |
|
sendStringParametersAsUnicode is a JDBC property. It needs to be set on the JDBC connection.
If you are using a DataSource you need to set it in your DataSource options, otherwise you can set it in your persistence.xml.
You can either set it a part of your JDBC URL
i.e.
jdbc:sqlserver://[serverName[\instanceName][:portNumber]][;property=value]
or use the EclipseLink persistence property,
"eclipselink.jdbc.property.sendStringParametersAsUnicode"="false"
(requires EclipseLink 2.4)
James : Wiki : Book : Blog : Twitter
|
|
|
|
Re: Convert varchar to nvarchar for specific columns only. [message #1060012 is a reply to message #1058651] |
Wed, 22 May 2013 14:19  |
|
So what do you need to occur in JDBC exactly?
EclipseLink does have some special support for NVARCHAR types for Oracle. Refer to the Oracle9Platform class for how it is done. You may need to do something similar for SQL Server.
If it is as simple as needing to call setNString() instead of setString(), or setObject() with including the type, then you could log a bug for this, it should be something that could be supported. You could probably support it yourself by subclassing the SQLServerPlatform.
James : Wiki : Book : Blog : Twitter
|
|
|
Powered by
FUDForum. Page generated in 0.01736 seconds