[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3244?page=c...
]
Sergey Derugo commented on HHH-3244:
------------------------------------
I propose introduce the following type:
{code}
package org.hibernate.myextensions;
import org.hibernate.type.StringType;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Types;
public class NVarcharStringType extends StringType {
@Override
public void set(PreparedStatement st, Object value, int index) throws SQLException {
st.setNString(index, (String) value);// JDBC 4.0 feature
}
@Override
public int sqlType() {
return Types.NVARCHAR;// JDBC 4.0 feature
}
@Override
public String getName() {
return "nstring";
}
}
{code}
Implement support NVARCHAR type
--------------------------------
Key: HHH-3244
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3244
Project: Hibernate3
Issue Type: New Feature
Components: core
Environment: al
Reporter: Sergey Derugo
JDBC 4.0 allows supports NVARCHAR type, but Hibernate doesn't handle it. Please
implement support for NVarchar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira